Launcher: fix broken app and widget icons
The WebView requests a screenful of icons at once on several threads, and loading and drawing icon drawables concurrently failed for that first batch (and for every widget icon). Icons are now drawn one at a time under a lock from a mutated drawable, widget icons fall back to the app icon, and failures are logged under the "ultra" tag. The page retries a failed icon twice and then shows a blank disc instead of a broken image. 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:
1 parent
3ed5afbafc
commit
70fc005e90
3 files changed
+68
-11
No files matched your search
@@ -34,6 +34,7 @@ body { margin: 0; min-height: 100vh; color: #fff; -webkit-tap-highlight-color: t
|
||||
.tile:active { background: rgb(255 255 255 / .12); }
|
||||
.icon { width: 3.25rem; height: 3.25rem; object-fit: contain; pointer-events: none;
|
||||
filter: drop-shadow(0 2px 4px rgb(0 0 0 / .3)); }
|
||||
.icon.missing { border-radius: 999px; background: rgb(255 255 255 / .18); object-position: -999px 0; }
|
||||
.name { max-width: 100%; font-size: .75rem; line-height: 1.2; text-align: center;
|
||||
text-shadow: var(--shadow-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user