Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6195ebbb authored by Charlie Anderson's avatar Charlie Anderson
Browse files

Make sure icon cache method for getting icons respects skipAddToMemCache flag.

	- Specifically this was used to fix a bug where archived pending widgets write to cache with a lesser quality icon

Bug: 399649982
Flag: com.android.launcher3.restore_archived_app_icons_from_db
Test: performing launcher restore with app icons, widgets and shortcuts
Change-Id: If1ad36e5eb18373b17e8c1864f70ce13298e62fa
parent a7914bb3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -464,8 +464,10 @@ constructor(
                }
            }

            val shouldAddToCache =
                !(lookupFlags.skipAddToMemCache() && Flags.restoreArchivedAppIconsFromDb())
            // Only add a filled-out entry to the cache
            if (entryUpdated) {
            if (entryUpdated && shouldAddToCache) {
                cache[cacheKey] = entry
            }
        }