mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Simplifying IconCache access code
Providing a way to access icon cache without LauncherAcitivtiyInfo. This allows fetching LauncherActivityInfo only when required, thus avoiding system RPC when the icon is already in cache. Change-Id: I92918c7a0d0d0796e5f7b70d4ecb6787c52c6600
This commit is contained in:
@@ -251,15 +251,13 @@ public class PackageUpdatedTask extends ExtendedModelTask {
|
||||
si.status = ShortcutInfo.DEFAULT;
|
||||
infoUpdated = true;
|
||||
if (si.itemType == Favorites.ITEM_TYPE_APPLICATION) {
|
||||
iconCache.getTitleAndIcon(si, si.getPromisedIntent(),
|
||||
si.user, si.usingLowResIcon);
|
||||
iconCache.getTitleAndIcon(si, si.usingLowResIcon);
|
||||
}
|
||||
}
|
||||
|
||||
if (appInfo != null && Intent.ACTION_MAIN.equals(si.intent.getAction())
|
||||
&& si.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) {
|
||||
iconCache.getTitleAndIcon(
|
||||
si, si.getPromisedIntent(), si.user, si.usingLowResIcon);
|
||||
iconCache.getTitleAndIcon(si, si.usingLowResIcon);
|
||||
infoUpdated = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user