Fixes copilot recommendation

This commit is contained in:
Vitor Pamplona
2026-03-13 15:20:01 -04:00
parent 9b58a1be11
commit 8339413262
@@ -129,13 +129,6 @@ 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)
@@ -406,6 +399,11 @@ class AppModules(
delay(3000)
videoCache
}
applicationIOScope.launch {
// Eagerly initialize OtsSharedPreferences off the main thread
otsPrefs
}
}
fun terminate(appContext: Context) {