Added explicit cast so it compiles on Eclipse.

BUG: 29399275

Change-Id: Id9f49ca85b2b7ab89340e27527ff652047e059ae
This commit is contained in:
Felipe Leme
2016-06-13 14:19:40 -07:00
parent aac4febcca
commit f93ce176de

View File

@@ -380,7 +380,8 @@ public class LauncherAppsService extends SystemService {
"To query by shortcut ID, package name must also be set");
}
return new ParceledListSlice<>(
// TODO(b/29399275): Eclipse compiler requires explicit List<ShortcutInfo> cast below.
return new ParceledListSlice<>((List<ShortcutInfo>)
mShortcutServiceInternal.getShortcuts(getCallingUserId(),
callingPackage, changedSince, packageName, shortcutIds,
componentName, flags, user.getIdentifier()));