Launcher: deliver icons through the bridge instead of intercepted image requests

Icons loaded as <img src="icon?c=..."> through shouldInterceptRequest
kept failing on a real phone for the first screenful of apps and for
every widget, even with retries. The page now asks the shell for icons
by key (Android.loadIcons); the shell draws them on one background
thread and returns them in batches of data: URIs via ultraIcons(). An
icon that can't be drawn shows as a blank disc.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
This commit is contained in:
Claude committed 2026-10-21 19:01:50 +00:00
1 parent d34b753434
commit a52108e95f
4 files changed
+75 -17

No files matched your search

+1 -1
View File
@@ -489,7 +489,7 @@ def view_icon(h: i32) -> None:
cls("icon")
attr("alt", "")
attr("draggable", "false")
attr_ref("src", h)
attr_ref("data-icon", h) # index.html turns this into a src
end()