Sync: move sync lifecycle to onStart/onStop instead of onResume/onPause

This commit is contained in:
ganfra
2023-07-27 16:49:49 +02:00
parent 5047136a7b
commit 337d4d05d6

View File

@@ -138,12 +138,12 @@ class LoggedInFlowNode @AssistedInject constructor(
backstack.push(NavTarget.Ftue)
}
},
onResume = {
onStart = {
lifecycleScope.launch {
syncService.startSync()
}
},
onPause = {
onStop = {
syncService.stopSync()
},
onDestroy = {