Loading mobile/android/fenix/app/src/main/java/org/mozilla/fenix/startupCrash/StartupCrashScreen.kt +2 −14 Original line number Diff line number Diff line Loading @@ -53,15 +53,13 @@ internal fun StartupCrashScreen(store: StartupCrashStore) { verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally, ) { ScreenImg() Spacer(modifier = Modifier.height(16.dp)) ScreenText() Spacer(modifier = Modifier.height(24.dp)) when (state.uiState) { // tb#44769 Force state.uiState to be UiState.Finished because we don't want to report crashes when (UiState.Finished) { UiState.Idle -> { ReportButtons(store) } Loading Loading @@ -153,16 +151,6 @@ private fun ScreenText() { ), style = FirefoxTheme.typography.headline5, ) Text( text = stringResource( R.string.startup_crash_body, stringResource(R.string.firefox), ), color = MaterialTheme.colorScheme.onSurfaceVariant, style = FirefoxTheme.typography.body2, textAlign = TextAlign.Center, ) } } Loading Loading
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/startupCrash/StartupCrashScreen.kt +2 −14 Original line number Diff line number Diff line Loading @@ -53,15 +53,13 @@ internal fun StartupCrashScreen(store: StartupCrashStore) { verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally, ) { ScreenImg() Spacer(modifier = Modifier.height(16.dp)) ScreenText() Spacer(modifier = Modifier.height(24.dp)) when (state.uiState) { // tb#44769 Force state.uiState to be UiState.Finished because we don't want to report crashes when (UiState.Finished) { UiState.Idle -> { ReportButtons(store) } Loading Loading @@ -153,16 +151,6 @@ private fun ScreenText() { ), style = FirefoxTheme.typography.headline5, ) Text( text = stringResource( R.string.startup_crash_body, stringResource(R.string.firefox), ), color = MaterialTheme.colorScheme.onSurfaceVariant, style = FirefoxTheme.typography.body2, textAlign = TextAlign.Center, ) } } Loading