mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Fix overriden deep shortcut titles and icons
Bulk Icon loading causes all icons that share a component name to share a title and bitmap. This didn't work for deep shortcuts since they were already being loaded individually. Added a check to filter out deep shortcuts. Note: If future traces show that individual deep shortcut loading is taking too long, then deep shortcut loading can be refactored into bulk icon loading. Fixes: 224891898 Test: manual Change-Id: I112fcd4a889071e5b523d56731bad8ecdee08abc
This commit is contained in:
@@ -615,7 +615,13 @@ public class LoaderTask implements Runnable {
|
||||
}
|
||||
|
||||
if (info != null) {
|
||||
iconRequestInfos.add(c.createIconRequestInfo(info, useLowResIcon));
|
||||
if (info.itemType
|
||||
!= LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) {
|
||||
// Skip deep shortcuts; their title and icons have already been
|
||||
// loaded above.
|
||||
iconRequestInfos.add(
|
||||
c.createIconRequestInfo(info, useLowResIcon));
|
||||
}
|
||||
|
||||
c.applyCommonProperties(info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user