Show Sync status when state is Terminated.
This commit is contained in:
parent
dc3c237176
commit
d5e6bbbe05
1 changed files with 2 additions and 2 deletions
|
|
@ -83,10 +83,10 @@ fun SyncStateView(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun SyncState.mustBeVisible() = when (this) {
|
private fun SyncState.mustBeVisible() = when (this) {
|
||||||
SyncState.Idle -> true
|
SyncState.Idle -> true /* Cold start of the app */
|
||||||
SyncState.Running -> false
|
SyncState.Running -> false
|
||||||
SyncState.Error -> false /* In this case, the network error banner can be displayed */
|
SyncState.Error -> false /* In this case, the network error banner can be displayed */
|
||||||
SyncState.Terminated -> false
|
SyncState.Terminated -> true /* The app is resumed and the sync is started again */
|
||||||
}
|
}
|
||||||
|
|
||||||
@DayNightPreviews
|
@DayNightPreviews
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue