Skip to content

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.

Second Brain opens on the graph view, not the list

Rishabh Bajpai7c625da0144b
diff --git a/app/src/main/java/com/gotcha/ui/SecondBrainScreen.kt b/app/src/main/java/com/gotcha/ui/SecondBrainScreen.kt
index 80c3ca2..8e881dd 100644
--- a/app/src/main/java/com/gotcha/ui/SecondBrainScreen.kt
+++ b/app/src/main/java/com/gotcha/ui/SecondBrainScreen.kt
@@ -93,7 +93,7 @@ fun SecondBrainScreen(
val context = LocalContext.current
var snapshot by remember { mutableStateOf<MemoryStore.SecondBrainSnapshot?>(null) }
var health by remember { mutableStateOf<MemoryStore.BrainHealth?>(null) }
- var showGraph by remember { mutableStateOf(false) }
+ var showGraph by remember { mutableStateOf(true) }
// Bumped on resume: the user may have granted file access in Android
// Settings, or a chat may have written something while they were away.
var tick by remember { mutableIntStateOf(0) }
diff --git a/app/src/test/java/com/gotcha/data/SettingsSkinMigrationTest.kt b/app/src/test/java/com/gotcha/data/SettingsSkinMigrationTest.kt
index 461bf87..c97ff86 100644
--- a/app/src/test/java/com/gotcha/data/SettingsSkinMigrationTest.kt
+++ b/app/src/test/java/com/gotcha/data/SettingsSkinMigrationTest.kt
@@ -26,6 +26,10 @@ class SettingsSkinMigrationTest {
@Before
fun setUp() {
FakeAndroidKeyStore.setUp()
+ // Hermetic prefs: the whole suite shares one Robolectric JVM, and other
+ // classes leave encrypted settings behind that this class must not see.
+ context.getSharedPreferences(SETTINGS_PREFS_FILE, Context.MODE_PRIVATE)
+ .edit().clear().apply()
repository = SettingsRepository(context)
}