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 036658232b
commit 8393db5d9e
@@ -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 = {