diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/deny/AppProcessInfo.kt b/app/src/main/java/com/topjohnwu/magisk/ui/deny/AppProcessInfo.kt index 416f6c8d9..f61f491a4 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/deny/AppProcessInfo.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/deny/AppProcessInfo.kt @@ -38,7 +38,7 @@ class AppProcessInfo( } val label = info.getLabel(pm) - val iconImage: Drawable = info.loadIcon(pm) + val iconImage: Drawable = runCatching { info.loadIcon(pm) }.getOrDefault(pm.defaultActivityIcon) val packageName: String get() = info.packageName val processes = fetchProcesses(pm)