Avoid downgrading archived app icon when widget is restored and when apps are archived.
- Restored widget were requesting icons through iconcache, and overwriting the restored icon from restored db. - Manually archiving icons would delete icon in cache, we should instead reuse the icon from when it was installed. Bug: 399649982 Test: Manually performing restore with apps, widgets and shortcuts. Flag: com.android.launcher3.restore_archived_app_icons_from_db Change-Id: I4184af480f29eb3ef41173fe5edc5307f263d0b0
This commit is contained in:
1 parent
99ef00bfb9
commit
19c4a92ebc
5 files changed
+86
-18
No files matched your search
@@ -326,6 +326,7 @@ public class LoaderCursor extends CursorWrapper {
|
||||
|
||||
// the fallback icon
|
||||
if (!loadIconFromDb(info)) {
|
||||
FileLog.d(TAG, "loadIconFromDb failed, getting from cache - intent=" + intent);
|
||||
mIconCache.getTitleAndIcon(info, DEFAULT_LOOKUP_FLAG);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user