mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
BIT-756: Wrap startActivity in IntentManager with try catch (#865)
This commit is contained in:
parent
f93db195c0
commit
f1a799955c
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ class IntentManagerImpl(
|
|||
private val clock: Clock = Clock.systemDefaultZone(),
|
||||
) : IntentManager {
|
||||
override fun startActivity(intent: Intent) {
|
||||
context.startActivity(intent)
|
||||
try {
|
||||
context.startActivity(intent)
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
// no-op
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
Loading…
Reference in a new issue