OSDN Git Service

Update code so it compiles on google3
authorSameer Padala <sxp@google.com>
Sat, 9 Aug 2014 00:34:57 +0000 (17:34 -0700)
committerSameer Padala <sxp@google.com>
Sat, 9 Aug 2014 00:34:57 +0000 (17:34 -0700)
Change-Id: I76c6a5264585c8ad4ded22501d2e2ee1672308c3

src/com/android/launcher3/Workspace.java
src/com/android/launcher3/compat/PackageInstallerCompatV16.java
src/com/android/launcher3/compat/PackageInstallerCompatVL.java

index 7c8708b..c1bbbe0 100644 (file)
@@ -4866,7 +4866,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() {
index 653a88c..6a2a02e 100644 (file)
@@ -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);
             }
index 7f6302f..26e1b7c 100644 (file)
@@ -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);
         }