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
This commit is contained in:
Sunny Goyal
2015-06-25 16:37:44 -07:00
parent b41b836968
commit 4e5cc64eaf
8 changed files with 178 additions and 98 deletions

View File

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