Commit b37d7e05 authored by LoveSy's avatar LoveSy Committed by John Wu

Use default icon when failed to get app icon

Fix #5051
parent f4ed6274
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment