BIT-756: Wrap startActivity in IntentManager with try catch (#865)

This commit is contained in:
Joshua Queen 2024-01-30 10:59:32 -05:00 committed by Álison Fernandes
parent f93db195c0
commit f1a799955c

View file

@ -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