Merge pull request #987 from vector-im/feature/fga/sync_lifecycle
Sync: move sync lifecycle to onStart/onStop instead of onResume/onPause
This commit is contained in:
commit
cd5b9ea3f9
1 changed files with 2 additions and 2 deletions
|
|
@ -138,12 +138,12 @@ class LoggedInFlowNode @AssistedInject constructor(
|
|||
backstack.push(NavTarget.Ftue)
|
||||
}
|
||||
},
|
||||
onResume = {
|
||||
onStart = {
|
||||
lifecycleScope.launch {
|
||||
syncService.startSync()
|
||||
}
|
||||
},
|
||||
onPause = {
|
||||
onStop = {
|
||||
syncService.stopSync()
|
||||
},
|
||||
onDestroy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue