mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
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:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user