Catch SecurityExceptions; unpin apps if they couldn't be launched
This commit is contained in:
@@ -25,5 +25,7 @@ fun Context.tryStartActivity(intent: Intent, bundle: Bundle? = null): Boolean {
|
||||
true
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
false
|
||||
} catch (e: SecurityException) {
|
||||
false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user