Render app icons at their on-screen size

Icons were always drawn at 96 px: blurry on screens where 40 dp is
larger, wasted memory where it is smaller. The cache is now limited to
10 MB instead of 256 entries.
This commit is contained in:
2026-10-25 14:47:28 +02:00
parent d9080195ab
commit cff974851a
2 changed files with 13 additions and 6 deletions
@@ -25,7 +25,7 @@ class SparkleApp : Application() {
}
// The VPN keeps the process running long after the screens are gone; decoded app icons
// (up to about 9 MB) can be rendered again the next time the Apps tab opens
// (up to 10 MB) can be rendered again the next time the Apps tab opens
override fun onTrimMemory(level: Int) {
super.onTrimMemory(level)
if (level >= TRIM_MEMORY_UI_HIDDEN) clearAppIconCache()