Fix startup crash on some Samsung Android 9 to 11 devices

Closes #4078
This commit is contained in:
AntsyLich
2026-10-12 13:51:25 +06:00
parent 8457fb91e0
commit abb126ad20
2 changed files with 11 additions and 0 deletions
@@ -337,6 +337,16 @@ class MainActivity : BaseActivity() {
}
}
override fun reportFullyDrawn() {
try {
super.reportFullyDrawn()
} catch (e: SecurityException) {
// Some Samsung Android 9 to 11 builds deny the platform's fully drawn broadcast
// and the report only feeds startup metrics, so it shouldn't crash the app
logcat(LogPriority.WARN, e)
}
}
@Composable
private fun HandleOnNewIntent(context: Context, navigator: Navigator) {
LaunchedEffect(Unit) {