Fix 2275513 - Icons don't update on package update

Also reuses the BubbleText object, which was being recreated for no reason.
This commit is contained in:
Joe Onorato
2009-11-24 19:34:29 -05:00
parent dbbf45b59e
commit f0be2134e5
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ class AllAppsList {
data.add(applicationInfo);
added.add(applicationInfo);
} else {
AppInfoCache.update(info, applicationInfo, context);
AppInfoCache.update(info, applicationInfo, context, bubble);
modified.add(applicationInfo);
}
}
+3 -2
View File
@@ -86,9 +86,10 @@ public class AppInfoCache {
/**
* 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);
+1
View File
@@ -2222,6 +2222,7 @@ public final class Launcher extends Activity
public void bindPackageUpdated(String packageName, ArrayList<ApplicationInfo> apps) {
removeDialog(DIALOG_CREATE_SHORTCUT);
mWorkspace.updateShortcutsForPackage(packageName);
mAllAppsGrid.updateApps(packageName, apps);
}
/**