Catch SecurityExceptions; unpin apps if they couldn't be launched

This commit is contained in:
MM20
2022-03-27 14:18:46 +02:00
parent 2a9339926d
commit 3a15b59526
5 changed files with 12 additions and 5 deletions
@@ -25,5 +25,7 @@ fun Context.tryStartActivity(intent: Intent, bundle: Bundle? = null): Boolean {
true
} catch (e: ActivityNotFoundException) {
false
} catch (e: SecurityException) {
false
}
}