diff --git a/F-Droid/src/org/fdroid/fdroid/UpdateService.java b/F-Droid/src/org/fdroid/fdroid/UpdateService.java index 1d6ed11e6..686c6cf1e 100644 --- a/F-Droid/src/org/fdroid/fdroid/UpdateService.java +++ b/F-Droid/src/org/fdroid/fdroid/UpdateService.java @@ -171,7 +171,7 @@ public class UpdateService extends IntentService implements ProgressListener { finished = true; } else if (resultCode == UpdateService.STATUS_ERROR_LOCAL || resultCode == UpdateService.STATUS_ERROR_LOCAL_SMALL) { StringBuilder msgB = new StringBuilder(); - ArrayList repoErrors = resultData.getCharSequenceArrayList(UpdateService.RESULT_REPO_ERRORS); + List repoErrors = resultData.getCharSequenceArrayList(UpdateService.RESULT_REPO_ERRORS); for (CharSequence error : repoErrors) { if (msgB.length() > 0) msgB.append('\n'); msgB.append(error); @@ -351,7 +351,7 @@ public class UpdateService extends IntentService implements ProgressListener { List unchangedRepos = new ArrayList(); List updatedRepos = new ArrayList(); List disabledRepos = new ArrayList(); - ArrayList errorRepos = new ArrayList(); + List errorRepos = new ArrayList(); ArrayList repoErrors = new ArrayList(); List repoUpdateRememberers = new ArrayList(); boolean changes = false; @@ -579,7 +579,7 @@ public class UpdateService extends IntentService implements ProgressListener { private void updateOrInsertApps(List appsToUpdate, int totalUpdateCount, int currentCount) { - ArrayList operations = new ArrayList(); + List operations = new ArrayList(); List knownAppIds = getKnownAppIds(appsToUpdate); for (final App a : appsToUpdate) { boolean known = false; @@ -608,7 +608,7 @@ public class UpdateService extends IntentService implements ProgressListener { } private void executeBatchWithStatus(String providerAuthority, - ArrayList operations, + List operations, int currentCount, int totalUpdateCount) throws RemoteException, OperationApplicationException { @@ -643,7 +643,7 @@ public class UpdateService extends IntentService implements ProgressListener { private void updateOrInsertApks(List apksToUpdate, int totalApksAppsCount, int currentCount) { - ArrayList operations = new ArrayList(); + List operations = new ArrayList(); List knownApks = getKnownApks(apksToUpdate); for (final Apk apk : apksToUpdate) { diff --git a/F-Droid/src/org/fdroid/fdroid/views/fragments/SelectLocalAppsFragment.java b/F-Droid/src/org/fdroid/fdroid/views/fragments/SelectLocalAppsFragment.java index 086123fc5..61f55e8e0 100644 --- a/F-Droid/src/org/fdroid/fdroid/views/fragments/SelectLocalAppsFragment.java +++ b/F-Droid/src/org/fdroid/fdroid/views/fragments/SelectLocalAppsFragment.java @@ -42,6 +42,7 @@ import org.fdroid.fdroid.localrepo.LocalRepoManager; import org.fdroid.fdroid.views.SelectLocalAppsActivity; import java.util.HashSet; +import java.util.Set; public class SelectLocalAppsFragment extends ListFragment implements LoaderManager.LoaderCallbacks, OnQueryTextListener { @@ -112,7 +113,7 @@ public class SelectLocalAppsFragment extends ListFragment // build list of existing apps from what is on the file system if (FDroidApp.selectedApps == null) { - HashSet selectedApps = new HashSet(); + Set selectedApps = new HashSet(); for (String filename : LocalRepoManager.get(selectLocalAppsActivity).repoDir.list()) { if (filename.matches(".*\\.apk")) { String packageName = filename.substring(0, filename.indexOf("_"));