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

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 = {