Merge commit 'ec92f072bb7d8dcd9d968ffe74426507494ffa23' into eclair-mr2-plus-aosp * commit 'ec92f072bb7d8dcd9d968ffe74426507494ffa23': Fix 2275513 - Icons don't update on package update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user