Ensure initial sync progress dialog is hidden when the initial sync is over
This commit is contained in:
parent
8644363005
commit
679f0a5940
|
@ -0,0 +1 @@
|
|||
Ensure initial sync progress dialog is hidden when the initial sync is over
|
|
@ -313,10 +313,7 @@ class HomeActivity :
|
|||
|
||||
private fun renderState(state: HomeActivityViewState) {
|
||||
when (val status = state.syncStatusServiceStatus) {
|
||||
is SyncStatusService.Status.Idle -> {
|
||||
views.waitingView.root.isVisible = false
|
||||
}
|
||||
is SyncStatusService.Status.Progressing -> {
|
||||
is SyncStatusService.Status.Progressing -> {
|
||||
val initSyncStepStr = initSyncStepFormatter.format(status.initSyncStep)
|
||||
Timber.v("$initSyncStepStr ${status.percentProgress}")
|
||||
views.waitingView.root.setOnClickListener {
|
||||
|
@ -334,7 +331,10 @@ class HomeActivity :
|
|||
}
|
||||
views.waitingView.root.isVisible = true
|
||||
}
|
||||
else -> Unit
|
||||
else -> {
|
||||
// Idle or Incremental sync status
|
||||
views.waitingView.root.isVisible = false
|
||||
}
|
||||
}.exhaustive
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue