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 GitHub
parent 2cbd9f457e
commit 72b27a10cf

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