mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user