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) backstack.push(NavTarget.Ftue)
} }
}, },
onResume = { onStart = {
lifecycleScope.launch { lifecycleScope.launch {
syncService.startSync() syncService.startSync()
} }
}, },
onPause = { onStop = {
syncService.stopSync() syncService.stopSync()
}, },
onDestroy = { onDestroy = {