Load app icons in original resolution again

This commit is contained in:
MM20 2024-06-14 23:29:31 +02:00
parent 8d7afb486f
commit c23cfbd62b
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -90,10 +90,8 @@ internal data class LauncherApp(
try {
val icon =
withContext(Dispatchers.IO) {
// Adaptive icons have a size of 108dp (https://developer.android.com/develop/ui/views/launch/icon_design_adaptive#design-adaptive-icons),
// but we scale them to 1.5x so the inbounds are only 72dp
val density = size / (108/1.5)
launcherActivityInfo.getIcon((160 * density).roundToInt())
launcherActivityInfo.getIcon(0)
} ?: return null
if (icon is AdaptiveIconDrawable) {