Loading src/com/android/launcher3/model/LoaderTask.java +12 −0 Original line number Diff line number Diff line Loading @@ -475,11 +475,23 @@ public class LoaderTask implements Runnable { mItemsDeleted = c.commitDeleted(); processFolderItems(); processAppPairItems(); c.commitRestoredItems(); } } /** * After all items have been processed and added to the BgDataModel, this method requests * high-res icons for the items that are part of an app pair */ private void processAppPairItems() { mBgDataModel.workspaceItems.stream() .filter((itemInfo -> itemInfo.itemType == ITEM_TYPE_APP_PAIR)) .forEach(fi -> ((FolderInfo) fi).contents.forEach(item -> mIconCache.getTitleAndIcon(item, false /*useLowResIcon*/))); } /** * Initialized the UserManagerState, and determines which users are unlocked. Additionally, if * the user is unlocked, it queries LauncherAppsService for pinned shortcuts and stores the Loading Loading
src/com/android/launcher3/model/LoaderTask.java +12 −0 Original line number Diff line number Diff line Loading @@ -475,11 +475,23 @@ public class LoaderTask implements Runnable { mItemsDeleted = c.commitDeleted(); processFolderItems(); processAppPairItems(); c.commitRestoredItems(); } } /** * After all items have been processed and added to the BgDataModel, this method requests * high-res icons for the items that are part of an app pair */ private void processAppPairItems() { mBgDataModel.workspaceItems.stream() .filter((itemInfo -> itemInfo.itemType == ITEM_TYPE_APP_PAIR)) .forEach(fi -> ((FolderInfo) fi).contents.forEach(item -> mIconCache.getTitleAndIcon(item, false /*useLowResIcon*/))); } /** * Initialized the UserManagerState, and determines which users are unlocked. Additionally, if * the user is unlocked, it queries LauncherAppsService for pinned shortcuts and stores the Loading