Adding some source hints when generating theme icons
Bug: 381897614 Flag: EXEMPT refactor Test: Presubmit Change-Id: Ief779bb04cd69372ec3acd4501e283f09de41b4d
This commit is contained in:
@@ -112,7 +112,9 @@ object CacheableShortcutCachingLogic : CachingLogic<CacheableShortcutInfo> {
|
||||
?.let { d ->
|
||||
li.createBadgedIconBitmap(
|
||||
d,
|
||||
IconOptions().setExtractedColor(Themes.getColorAccent(context)),
|
||||
IconOptions()
|
||||
.setExtractedColor(Themes.getColorAccent(context))
|
||||
.setSourceHint(getSourceHint(info, cache)),
|
||||
)
|
||||
} ?: BitmapInfo.LOW_RES_INFO
|
||||
}
|
||||
|
||||
@@ -594,7 +594,8 @@ public class IconCache extends BaseIconCache {
|
||||
|
||||
@VisibleForTesting
|
||||
synchronized boolean isItemInDb(ComponentKey cacheKey) {
|
||||
return getEntryFromDBLocked(cacheKey, new CacheEntry(), DEFAULT_LOOKUP_FLAG);
|
||||
return getEntryFromDBLocked(cacheKey, new CacheEntry(), DEFAULT_LOOKUP_FLAG,
|
||||
LauncherActivityCachingLogic.INSTANCE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user