- Decision
- ADR-183
- Date
- 2026-10-20
- Status
- ProposedProposed (landed and type-checked, not built, not run on a device;
DRW-017). - Mentions
- ADR-141
1Decision
Amend ADR-141: the apps of the drawer are loaded with the theme icon from the start (DESKTOP_ICON_FLAG instead of the default lookup in AllAppsList.add, AllAppsList.updatePackage and the icon requests of LoaderTask.loadAllApps; patch 0003 of launcher/app-drawer).
2Why and evidence
Owner report 2026-10-20 (stallion): now and then a split second of an app's own colours in the drawer, on random apps; the owner suspects a busy phone with full swap.
[verified-in-source]: the AppInfo of the drawer was created with the default lookup flag, which has no theme icon, while BubbleTextView.shouldUseTheme (ADR-141) makes a drawer view draw themed icons; verifyHighRes then reloads the themed icon in the background after the first draw (isVisuallyLessThan), and the view shows the app's own colours until reapplyItemInfo arrives.
The wait grows when the model thread is slow, which is the owner's hypothesis and [assumption]: on an idle lynx after a launcher restart no frame showed own colours [measured: screen recording, 2026-10-20].
3Consequences
The bulk query of the loader also reads the mono_icon column and decodes one alpha-8 bitmap per app at launcher load (upstream does that lazily, per view that is shown); after the whole drawer was scrolled both states hold the same bitmaps. The extra heap at load is [assumption] a few MB for about 150 apps and is to be measured with dumpsys meminfo of the launcher before and after (DRW-017). Search results and predictions draw unthemed icons as before (shouldUseTheme is false there).
4Review when
The launcher's memory after load grows by more than the measurement allows; the flash remains on stallion, so its cause is elsewhere.
Read from docs/governance/decision-log.md, entry ADR-183.