diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-06-25 16:37:44 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-06-25 17:41:06 -0700 |
commit | 4e5cc64eaf1f63d866d51ce0a6bbafb3d4085c21 (patch) | |
tree | a8428ef38bbf3c0576877f29b0c6621885c71a08 /src/com/android/launcher3/InstallShortcutReceiver.java | |
parent | b41b8369687025fe8d661eae8928cbbd9733da21 (diff) | |
download | android_packages_apps_Trebuchet-4e5cc64eaf1f63d866d51ce0a6bbafb3d4085c21.tar.gz android_packages_apps_Trebuchet-4e5cc64eaf1f63d866d51ce0a6bbafb3d4085c21.tar.bz2 android_packages_apps_Trebuchet-4e5cc64eaf1f63d866d51ce0a6bbafb3d4085c21.zip |
Fixing backup restore
> Not deleting icons from cache, which have not been restored yet
> Not checking if activity exists during DB migration. Missing
components are removed during loader anyway
> Backing up and restoring bitmaps even when iconType is resource.
This allows us to show a proper bitmap icon, until the correct
resource is available.
> Loading proper shortcutResource icon for promiseIcons
> Checking against promise intent when verifying duplicates
> A launcher App intent can contain EXTRA_PROFILE
Bug: 22094970
Change-Id: I982971338846733833ec133119393af0bea0eb08
Diffstat (limited to 'src/com/android/launcher3/InstallShortcutReceiver.java')
-rw-r--r-- | src/com/android/launcher3/InstallShortcutReceiver.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/launcher3/InstallShortcutReceiver.java b/src/com/android/launcher3/InstallShortcutReceiver.java index 448cc1dfd..3fc8fc0a9 100644 --- a/src/com/android/launcher3/InstallShortcutReceiver.java +++ b/src/com/android/launcher3/InstallShortcutReceiver.java @@ -432,10 +432,4 @@ public class InstallShortcutReceiver extends BroadcastReceiver { .fromResolveInfo(info, original.mContext); return new PendingInstallShortcutInfo(launcherInfo, original.mContext); } - - public static boolean isLauncherActivity(Intent intent, Context context) { - Intent data = new Intent().putExtra(Intent.EXTRA_SHORTCUT_INTENT, intent); - PendingInstallShortcutInfo info = new PendingInstallShortcutInfo(data, context); - return convertToLauncherActivityIfPossible(info).isLuncherActivity(); - } } |