mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-05-25 16:14:24 +02:00
adding a crashfix
This commit is contained in:
parent
80033c0dbd
commit
f8518ff296
@ -36,7 +36,11 @@ fun Context.getNotDisplayedLaunchers(displayedLaunchers: ArrayList<AppLauncher>)
|
|||||||
drawable = if (packageName.isAPredefinedApp()) {
|
drawable = if (packageName.isAPredefinedApp()) {
|
||||||
resources.getLauncherDrawable(packageName)
|
resources.getLauncherDrawable(packageName)
|
||||||
} else {
|
} else {
|
||||||
packageManager.getApplicationIcon(packageName)
|
try {
|
||||||
|
packageManager.getApplicationIcon(packageName)
|
||||||
|
} catch (ignored: Exception) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user