Sync: move sync lifecycle to onStart/onStop instead of onResume/onPause
This commit is contained in:
@@ -138,12 +138,12 @@ class LoggedInFlowNode @AssistedInject constructor(
|
||||
backstack.push(NavTarget.Ftue)
|
||||
}
|
||||
},
|
||||
onResume = {
|
||||
onStart = {
|
||||
lifecycleScope.launch {
|
||||
syncService.startSync()
|
||||
}
|
||||
},
|
||||
onPause = {
|
||||
onStop = {
|
||||
syncService.stopSync()
|
||||
},
|
||||
onDestroy = {
|
||||
|
||||
Reference in New Issue
Block a user