fix: Tried to make the app drawer listing list in alphabetical order when loading icon in bulk

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
Pun Butrach committed 2026-01-17 23:48:34 +07:00
1 parent 63ca6f434c
commit db221e1d09
3 files changed
+25 -1

No files matched your search

@@ -708,6 +708,23 @@ public class LoaderTask implements Runnable {
} finally {
Trace.endSection();
}
} else {
// LC-Note: This code dark magic sorting fallback is powered by Opus 4.5
Trace.beginSection("LoadAllAppsIconsIndividually");
try {
for (IconRequestInfo<AppInfo> iconRequestInfo : allAppsItemRequestInfos) {
AppInfo appInfo = iconRequestInfo.itemInfo;
if (iconRequestInfo.launcherActivityInfo != null) {
mIconCache.getTitleAndIcon(appInfo, iconRequestInfo.launcherActivityInfo,
appInfo.getMatchingLookupFlag());
} else {
mIconCache.getTitleAndIcon(appInfo, appInfo.getMatchingLookupFlag());
}
mBgAllAppsList.updateSectionName(appInfo);
}
} finally {
Trace.endSection();
}
}
if (Flags.enablePrivateSpace()) {