mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Show Sync status when state is Terminated.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user