Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
fix: keep the current screen across configuration changes
Durganshu8b4860381749
diff --git a/app/src/main/java/com/gotcha/MainActivity.kt b/app/src/main/java/com/gotcha/MainActivity.ktindex 7d96126..359a2db 100644--- a/app/src/main/java/com/gotcha/MainActivity.kt+++ b/app/src/main/java/com/gotcha/MainActivity.kt@@ -759,7 +759,10 @@ class MainActivity : ComponentActivity() {// install that has already seen the tour and is still unconfigured gets// dropped straight on the page holding the key and model.val unconfigured = remember { !initial.isConfigured && !tour.willRun }- var currentRoute by remember {+ // Saveable like settingsPage, so a configuration change (the phone's+ // language, a rotation, dark mode) puts the user back on the screen they+ // were on rather than on Home with a stale settings page waiting.+ var currentRoute by rememberSaveable {mutableStateOf(if (unconfigured) Route.SETTINGS else Route.HOME)}var settingsPage by rememberSaveable {