notes: add ability to search for notes
- Commit
ffcd450358e0e26fd34a14554eb741c36c980182- Author
- Vayun <[email protected]>
- When
- 2026-01-30 20:12 UTC (10 months ago)
- Parents
29492fe
Diff
notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.ktindex 9f4165bbea..c15eef16a2 100644--- a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt+++ b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListPage.kt@@ -14,5 +14,5 @@ fun NotesListPage(backStack: NavBackStack<Route>, viewModel: DatabaseViewModel) Text(it.title) }, { Text(it.content.substringBefore('\n').take(40))- }, { Route.Note(it) }, { Route.Note(0) }, isReorderable = true)+ }, { Route.Note(it) }, { Route.Note(0) }, isReorderable = true, searchEnabled = true) }\ No newline at end of file
passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt
diff --git a/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt b/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.ktindex e903622619..4a229b36d3 100644--- a/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt+++ b/passwords/src/main/java/com/vayunmathur/passwords/ui/MenuPage.kt@@ -68,5 +68,5 @@ fun MenuPage(backStack: NavBackStack<Route>, viewModel: DatabaseViewModel) { Icon(painterResource(R.drawable.content_copy_24px), contentDescription = "Copy TOTP", Modifier.size(16.dp)) } }- }, searchEnabled = true, searchString = {it.toString()})+ }, searchEnabled = true) }\ No newline at end of file