No longer generating title bitmaps for icons.
Change-Id: I857ba2a532158175396d45cba0976baa17da126f
This commit is contained in:
1 parent
e0cccab156
commit
c85ea570c4
2 files changed
+2
-12
No files matched your search
@@ -40,7 +40,6 @@ public class IconCache {
|
||||
private static class CacheEntry {
|
||||
public Bitmap icon;
|
||||
public String title;
|
||||
public Bitmap titleBitmap;
|
||||
}
|
||||
|
||||
private final Bitmap mDefaultIcon;
|
||||
@@ -129,12 +128,8 @@ public class IconCache {
|
||||
public void getTitleAndIcon(ApplicationInfo application, ResolveInfo info) {
|
||||
synchronized (mCache) {
|
||||
CacheEntry entry = cacheLocked(application.componentName, info);
|
||||
if (entry.titleBitmap == null) {
|
||||
entry.titleBitmap = mBubble.createTextBitmap(entry.title);
|
||||
}
|
||||
|
||||
application.title = entry.title;
|
||||
application.titleBitmap = entry.titleBitmap;
|
||||
application.iconBitmap = entry.icon;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user