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 committed 2015-06-25 17:41:06 -07:00
1 parent b41b836968
commit 4e5cc64eaf
8 files changed
+178 -98

No files matched your search

+3 -2
View File
@@ -76,8 +76,9 @@ public class ShortcutInfo extends ItemInfo {
/**
* Indicates whether the icon comes from an application's resource (if false)
* or from a custom Bitmap (if true.)
* TODO: remove this flag
*/
boolean customIcon;
public boolean customIcon;
/**
* Indicates whether we're using the default fallback icon instead of something from the
@@ -94,7 +95,7 @@ public class ShortcutInfo extends ItemInfo {
* If isShortcut=true and customIcon=false, this contains a reference to the
* shortcut icon as an application's resource.
*/
Intent.ShortcutIconResource iconResource;
public Intent.ShortcutIconResource iconResource;
/**
* The application icon.