Load app icons in original resolution again
This commit is contained in:
parent
8d7afb486f
commit
c23cfbd62b
@ -90,10 +90,8 @@ internal data class LauncherApp(
|
|||||||
try {
|
try {
|
||||||
val icon =
|
val icon =
|
||||||
withContext(Dispatchers.IO) {
|
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)
|
val density = size / (108/1.5)
|
||||||
launcherActivityInfo.getIcon((160 * density).roundToInt())
|
launcherActivityInfo.getIcon(0)
|
||||||
|
|
||||||
} ?: return null
|
} ?: return null
|
||||||
if (icon is AdaptiveIconDrawable) {
|
if (icon is AdaptiveIconDrawable) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user