summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
diff options
context:
space:
mode:
authorSameer Padala <sxp@google.com>2014-07-29 16:17:08 -0700
committerSameer Padala <sxp@google.com>2014-07-29 16:17:08 -0700
commit513edaebce9846c2d5eb4c0c013a9dcf6232c0e3 (patch)
tree5675775dc748a3689d2f822229beb06034ba3f5f /src/com/android/launcher3/Workspace.java
parent04c969ef9f5b328ffa0454573a93bbcf7f894854 (diff)
downloadandroid_packages_apps_Trebuchet-513edaebce9846c2d5eb4c0c013a9dcf6232c0e3.tar.gz
android_packages_apps_Trebuchet-513edaebce9846c2d5eb4c0c013a9dcf6232c0e3.tar.bz2
android_packages_apps_Trebuchet-513edaebce9846c2d5eb4c0c013a9dcf6232c0e3.zip
Modify code so it compiles on google3
The diamond operator isn't supported on google3 Android projects. Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r--src/com/android/launcher3/Workspace.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 1011588c8..6d9b34e21 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -4829,7 +4829,7 @@ public class Workspace extends SmoothPagedView
void updateShortcutsAndWidgets(ArrayList<AppInfo> apps) {
// Create a map of the apps to test against
final HashMap<ComponentName, AppInfo> appsMap = new HashMap<ComponentName, AppInfo>();
- final HashSet<String> pkgNames = new HashSet<>();
+ final HashSet<String> pkgNames = new HashSet<String>();
for (AppInfo ai : apps) {
appsMap.put(ai.componentName, ai);
pkgNames.add(ai.componentName.getPackageName());
@@ -4881,7 +4881,7 @@ public class Workspace extends SmoothPagedView
if (state == ShortcutInfo.PACKAGE_STATE_DEFAULT) {
// Update any pending widget
- HashSet<String> packages = new HashSet<>();
+ HashSet<String> packages = new HashSet<String>();
packages.add(pkgName);
restorePendingWidgets(packages);
}