mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-01-27 06:05:00 +01:00
fix app name fetching
This commit is contained in:
parent
c5953928bd
commit
02fedb3d5f
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user