Commit 0d11f73a authored by topjohnwu's avatar topjohnwu

Handle unexpected exceptions

Fix #3276
parent 533cb8eb
......@@ -67,7 +67,8 @@ class HideViewModel : BaseViewModel(), Queryable {
.asSequence()
.filter { it.enabled && !blacklist.contains(it.packageName) }
.map { HideAppInfo(it, pm) }
.map { createTarget(it, hides) }
.map { runCatching { createTarget(it, hides) }.getOrNull() }
.filterNotNull()
.filter { it.processes.isNotEmpty() }
.map { HideItem(it) }
.toList()
......
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