mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-04-22 22:07:26 +02:00
show proper app label
This commit is contained in:
parent
a72cf6e7e2
commit
cf7906b8fe
@ -23,7 +23,7 @@ fun Context.getAllLaunchers(): ArrayList<AppLauncher> {
|
|||||||
val list = packageManager.queryIntentActivities(intent, PackageManager.PERMISSION_GRANTED)
|
val list = packageManager.queryIntentActivities(intent, PackageManager.PERMISSION_GRANTED)
|
||||||
for (info in list) {
|
for (info in list) {
|
||||||
val componentInfo = info.activityInfo.applicationInfo
|
val componentInfo = info.activityInfo.applicationInfo
|
||||||
val label = componentInfo.loadLabel(packageManager).toString()
|
val label = info.loadLabel(packageManager).toString()
|
||||||
val packageName = componentInfo.packageName
|
val packageName = componentInfo.packageName
|
||||||
|
|
||||||
var drawable: Drawable? = null
|
var drawable: Drawable? = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user