Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7ae187a authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

AppLounge: Do not use mainscope to write into preferences

parent bf5acf93
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ import foundation.e.apps.utils.CustomUncaughtExceptionHandler
import foundation.e.lib.telemetry.Telemetry
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
@@ -90,7 +89,7 @@ class AppLoungeApplication : Application(), Configuration.Provider {

        val currentVersion = runBlocking { appLoungeDataStore.tosVersion.first() }
        if (!currentVersion.contentEquals(TOS_VERSION)) {
            MainScope().launch {
            coroutineScope.launch {
                appLoungeDataStore.saveTOCStatus(false, "")
            }
        }