Deferring testing of loaded icons against db icons, saves between 15-30% on workspace load. (5042022)
Change-Id: I016248f6779851390df1bf0a23199d0aecc032d1
This commit is contained in:
1 parent
c273c5814d
commit
aac01e1073
2 files changed
+45
-23
No files matched your search
@@ -160,13 +160,14 @@ public class IconCache {
|
||||
}
|
||||
}
|
||||
|
||||
public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo) {
|
||||
public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo,
|
||||
HashMap<Object, CharSequence> labelCache) {
|
||||
synchronized (mCache) {
|
||||
if (resolveInfo == null || component == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
CacheEntry entry = cacheLocked(component, resolveInfo, null);
|
||||
CacheEntry entry = cacheLocked(component, resolveInfo, labelCache);
|
||||
return entry.icon;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user