mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
3e16d317fc
commit
f4d6e3cb3e
@@ -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)
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user