Loading services/core/java/com/android/server/pm/ShortcutService.java +12 −3 Original line number Diff line number Diff line Loading @@ -238,10 +238,19 @@ public class ShortcutService extends IShortcutService.Stub { private static List<ResolveInfo> EMPTY_RESOLVE_INFO = new ArrayList<>(0); private static Predicate<ResolveInfo> ACTIVITY_NOT_EXPORTED = ri -> !ri.activityInfo.exported; // Temporarily reverted to anonymous inner class form due to: b/32554459 private static Predicate<ResolveInfo> ACTIVITY_NOT_EXPORTED = new Predicate<ResolveInfo>() { public boolean test(ResolveInfo ri) { return !ri.activityInfo.exported; } }; private static Predicate<PackageInfo> PACKAGE_NOT_INSTALLED = pi -> !isInstalled(pi); // Temporarily reverted to anonymous inner class form due to: b/32554459 private static Predicate<PackageInfo> PACKAGE_NOT_INSTALLED = new Predicate<PackageInfo>() { public boolean test(PackageInfo pi) { return !isInstalled(pi); } }; private final Handler mHandler; Loading Loading
services/core/java/com/android/server/pm/ShortcutService.java +12 −3 Original line number Diff line number Diff line Loading @@ -238,10 +238,19 @@ public class ShortcutService extends IShortcutService.Stub { private static List<ResolveInfo> EMPTY_RESOLVE_INFO = new ArrayList<>(0); private static Predicate<ResolveInfo> ACTIVITY_NOT_EXPORTED = ri -> !ri.activityInfo.exported; // Temporarily reverted to anonymous inner class form due to: b/32554459 private static Predicate<ResolveInfo> ACTIVITY_NOT_EXPORTED = new Predicate<ResolveInfo>() { public boolean test(ResolveInfo ri) { return !ri.activityInfo.exported; } }; private static Predicate<PackageInfo> PACKAGE_NOT_INSTALLED = pi -> !isInstalled(pi); // Temporarily reverted to anonymous inner class form due to: b/32554459 private static Predicate<PackageInfo> PACKAGE_NOT_INSTALLED = new Predicate<PackageInfo>() { public boolean test(PackageInfo pi) { return !isInstalled(pi); } }; private final Handler mHandler; Loading