mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Fix case where shortcut label wasn't updating
When installing an updated version of an app, update the title (we were previously only doing the icon). Bug: 6069921
This commit is contained in:
@@ -93,12 +93,16 @@ class ShortcutInfo extends ItemInfo {
|
||||
|
||||
public Bitmap getIcon(IconCache iconCache) {
|
||||
if (mIcon == null) {
|
||||
mIcon = iconCache.getIcon(this.intent);
|
||||
this.usingFallbackIcon = iconCache.isDefaultIcon(mIcon);
|
||||
updateIcon(iconCache);
|
||||
}
|
||||
return mIcon;
|
||||
}
|
||||
|
||||
public void updateIcon(IconCache iconCache) {
|
||||
mIcon = iconCache.getIcon(intent);
|
||||
usingFallbackIcon = iconCache.isDefaultIcon(mIcon);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the application intent based on a component name and various launch flags.
|
||||
* Sets {@link #itemType} to {@link LauncherSettings.BaseLauncherColumns#ITEM_TYPE_APPLICATION}.
|
||||
|
||||
Reference in New Issue
Block a user