From 02fedb3d5f2bf9a7304b3ee6c54ad6703daf9667 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 18 Sep 2022 21:49:57 +0200 Subject: [PATCH] fix app name fetching --- .../com/simplemobiletools/launcher/fragments/AllAppsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt index b794af3..db0c648 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/fragments/AllAppsFragment.kt @@ -82,7 +82,7 @@ class AllAppsFragment(context: Context, attributeSet: AttributeSet) : MyFragment val list = context.packageManager.queryIntentActivities(intent, PackageManager.PERMISSION_GRANTED) for (info in list) { val componentInfo = info.activityInfo.applicationInfo - val label = componentInfo.loadLabel(context.packageManager).toString() + val label = info.loadLabel(context.packageManager).toString() val packageName = componentInfo.packageName val drawable = context.getDrawableForPackageName(packageName) ?: continue val placeholderColor = calculateAverageColor(drawable.toBitmap())