summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/IconCache.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-07-11 16:02:31 -0700
committerWinson Chung <winsonc@google.com>2011-07-11 16:02:52 -0700
commitc85ea570c488ee5875da78ce011abeb6942b1990 (patch)
tree7ddfbfc3b78a83585f96d99c015bf8b763e56aea /src/com/android/launcher2/IconCache.java
parente0cccab156e49aa9d003334622e6a7ad0bdbfe77 (diff)
downloadandroid_packages_apps_Trebuchet-c85ea570c488ee5875da78ce011abeb6942b1990.tar.gz
android_packages_apps_Trebuchet-c85ea570c488ee5875da78ce011abeb6942b1990.tar.bz2
android_packages_apps_Trebuchet-c85ea570c488ee5875da78ce011abeb6942b1990.zip
No longer generating title bitmaps for icons.
Change-Id: I857ba2a532158175396d45cba0976baa17da126f
Diffstat (limited to 'src/com/android/launcher2/IconCache.java')
-rw-r--r--src/com/android/launcher2/IconCache.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/com/android/launcher2/IconCache.java b/src/com/android/launcher2/IconCache.java
index 22691a503..bf6caee91 100644
--- a/src/com/android/launcher2/IconCache.java
+++ b/src/com/android/launcher2/IconCache.java
@@ -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;
}
}