mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Fix blank pink loading icons by ensuring that cache entry won't downgrade existing icon." into 24D1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9f03ea256d
@@ -373,8 +373,13 @@ public class IconCache extends BaseIconCache {
|
||||
infoInOut.user, activityInfoProvider, mLauncherActivityInfoCachingLogic,
|
||||
usePkgIcon, useLowResIcon);
|
||||
applyPackageEntry(packageEntry, infoInOut, entry);
|
||||
} else {
|
||||
} else if (useLowResIcon || !entry.bitmap.isNullOrLowRes()
|
||||
|| infoInOut.bitmap.isNullOrLowRes()) {
|
||||
// Only use cache entry if it will not downgrade the current bitmap in infoInOut
|
||||
applyCacheEntry(entry, infoInOut);
|
||||
} else {
|
||||
Log.d(TAG, "getTitleAndIcon: Cache entry bitmap was a downgrade of existing bitmap"
|
||||
+ " in ItemInfo. Skipping.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user