Fix 2275513 - Icons don't update on package update
Also reuses the BubbleText object, which was being recreated for no reason.
diff --git a/src/com/android/launcher2/AppInfoCache.java b/src/com/android/launcher2/AppInfoCache.java
index 2fdfc28..a2d9830 100644
--- a/src/com/android/launcher2/AppInfoCache.java
+++ b/src/com/android/launcher2/AppInfoCache.java
@@ -86,9 +86,10 @@
/**
* Update the entry in the in the cache with its new metadata.
*/
- public static void update(ResolveInfo info, ApplicationInfo applicationInfo, Context context) {
+ public static void update(ResolveInfo info, ApplicationInfo applicationInfo, Context context,
+ Utilities.BubbleText bubble) {
synchronized (sCache) {
- updateTitleAndIcon(info, applicationInfo, context, new Utilities.BubbleText(context));
+ updateTitleAndIcon(info, applicationInfo, context, bubble);
ComponentName componentName = new ComponentName(
info.activityInfo.applicationInfo.packageName, info.activityInfo.name);