mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36: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:
@@ -61,7 +61,7 @@ public class ShortcutsChangedTask extends ExtendedModelTask {
|
||||
for (ItemInfo itemInfo : dataModel.itemsIdMap) {
|
||||
if (itemInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) {
|
||||
ShortcutInfo si = (ShortcutInfo) itemInfo;
|
||||
if (si.getPromisedIntent().getPackage().equals(mPackageName)
|
||||
if (si.getIntent().getPackage().equals(mPackageName)
|
||||
&& si.user.equals(mUser)) {
|
||||
idsToWorkspaceShortcutInfos.addToList(si.getDeepShortcutId(), si);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user