adding a crashfix

This commit is contained in:
tibbi 2019-10-12 18:16:36 +02:00
parent 80033c0dbd
commit f8518ff296

View File

@ -36,7 +36,11 @@ fun Context.getNotDisplayedLaunchers(displayedLaunchers: ArrayList<AppLauncher>)
drawable = if (packageName.isAPredefinedApp()) {
resources.getLauncherDrawable(packageName)
} else {
try {
packageManager.getApplicationIcon(packageName)
} catch (ignored: Exception) {
continue
}
}
}