Modify code so it compiles on google3

The diamond operator isn't supported on google3 Android projects.

Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd
This commit is contained in:
Sameer Padala
2014-07-29 16:17:08 -07:00
parent 04c969ef9f
commit 513edaebce
3 changed files with 7 additions and 6 deletions

View File

@@ -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);
}