Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Vitor Pamplona
2026-03-13 13:22:44 -04:00
committed by GitHub
co-authored by Copilot
parent 3e16d317fc
commit f4d6e3cb3e
2 changed files with 7 additions and 1 deletions
@@ -117,6 +117,12 @@ class AppModules(
OtsSharedPreferences(appContext, applicationIOScope)
}
init {
applicationIOScope.launch {
// Eagerly initialize OtsSharedPreferences off the main thread
otsPrefs
}
}
// App services that should be run as soon as there are subscribers to their flows
val locationManager = LocationState(appContext, applicationIOScope)
val connManager = ConnectivityManager(appContext, applicationIOScope)
@@ -234,7 +234,7 @@ private fun CustomExplorerInput(
onSave: (String?) -> Unit,
) {
var input by rememberSaveable(currentUrl) { mutableStateOf(currentUrl ?: "") }
var validationError by remember { mutableStateOf<String?>(null) }
var validationError by remember(currentUrl) { mutableStateOf<String?>(null) }
val kb = LocalSoftwareKeyboardController.current
fun trySave() {