Integrating suggested app by handling new status flags for shortcut items.
Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
This commit is contained in:
1 parent
9b745a82bf
commit
8ff9e1d679
16 files changed
+137
-45
No files matched your search
@@ -478,6 +478,12 @@ public class IconCache {
|
||||
}
|
||||
|
||||
private void applyCacheEntry(CacheEntry entry, ItemInfoWithIcon info) {
|
||||
if (info instanceof ShortcutInfo
|
||||
&& ((ShortcutInfo) info).hasStatusFlag(ShortcutInfo.FLAG_SUPPORTS_WEB_UI)
|
||||
&& (entry.icon == null || isDefaultIcon(entry.icon, info.user))) {
|
||||
// skip updating shortcut info if no icon and supports web ui
|
||||
return;
|
||||
}
|
||||
info.title = Utilities.trim(entry.title);
|
||||
info.contentDescription = entry.contentDescription;
|
||||
info.iconBitmap = entry.icon == null ? getDefaultIcon(info.user) : entry.icon;
|
||||
|
||||
Reference in new issue
Block a user