mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
update placeholder on package install or restore
Bug: 10778992 Change-Id: I3293d8bab8ae0ef49fc5554531bba5bd6f70932c
This commit is contained in:
@@ -4612,11 +4612,15 @@ public class Workspace extends SmoothPagedView
|
||||
private void updateShortcut(HashMap<ComponentName, AppInfo> appsMap, ItemInfo info,
|
||||
View child) {
|
||||
ComponentName cn = info.getIntent().getComponent();
|
||||
if (info.getRestoredIntent() != null) {
|
||||
cn = info.getRestoredIntent().getComponent();
|
||||
}
|
||||
if (cn != null) {
|
||||
AppInfo appInfo = appsMap.get(info.getIntent().getComponent());
|
||||
AppInfo appInfo = appsMap.get(cn);
|
||||
if ((appInfo != null) && LauncherModel.isShortcutInfoUpdateable(info)) {
|
||||
ShortcutInfo shortcutInfo = (ShortcutInfo) info;
|
||||
BubbleTextView shortcut = (BubbleTextView) child;
|
||||
shortcutInfo.restore();
|
||||
shortcutInfo.updateIcon(mIconCache);
|
||||
shortcutInfo.title = appInfo.title.toString();
|
||||
shortcut.applyFromShortcutInfo(shortcutInfo, mIconCache);
|
||||
|
||||
Reference in New Issue
Block a user