Merge "Update code so it compiles on google3" into ub-now-porkchop

This commit is contained in:
Sameer Padala
2014-08-11 19:51:55 +00:00
committed by Android (Google) Code Review
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4869,7 +4869,7 @@ public class Workspace extends SmoothPagedView
}
public void updatePackageState(ArrayList<PackageInstallInfo> installInfos) {
HashSet<String> completedPackages = new HashSet<>();
HashSet<String> completedPackages = new HashSet<String>();
for (final PackageInstallInfo installInfo : installInfos) {
mapOverItems(MAP_RECURSE, new ItemOperator() {
@@ -86,7 +86,7 @@ public class PackageInstallerCompatV16 extends PackageInstallerCompat {
return;
}
mReplayPending = false;
ArrayList<PackageInstallInfo> updates = new ArrayList<>();
ArrayList<PackageInstallInfo> updates = new ArrayList<PackageInstallInfo>();
for (String packageName: mPrefs.getAll().keySet()) {
final String json = mPrefs.getString(packageName, null);
if (!TextUtils.isEmpty(json)) {
@@ -125,7 +125,7 @@ public class PackageInstallerCompatV16 extends PackageInstallerCompat {
replayUpdates();
} else {
LauncherAppState app = LauncherAppState.getInstanceNoCreate();
ArrayList<PackageInstallInfo> update = new ArrayList<>();
ArrayList<PackageInstallInfo> update = new ArrayList<PackageInstallInfo>();
update.add(installInfo);
sendUpdate(app, update);
}
@@ -33,7 +33,7 @@ public class PackageInstallerCompatVL extends PackageInstallerCompat {
private static final String TAG = "PackageInstallerCompatVL";
private static final boolean DEBUG = false;
private final SparseArray<InstallSessionInfo> mPendingReplays = new SparseArray<>();
private final SparseArray<InstallSessionInfo> mPendingReplays = new SparseArray<InstallSessionInfo>();
private final PackageInstaller mInstaller;
private boolean mResumed;
@@ -97,7 +97,7 @@ public class PackageInstallerCompatVL extends PackageInstallerCompat {
return;
}
ArrayList<PackageInstallInfo> updates = new ArrayList<>();
ArrayList<PackageInstallInfo> updates = new ArrayList<PackageInstallInfo>();
if (newInfo != null) {
updates.add(newInfo);
}