mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Merge pull request #920 from vector-im/feature/bma/slidingSyncState
Sliding sync state rendering
This commit is contained in:
+2
-2
@@ -26,11 +26,11 @@ class FakeSyncService : SyncService {
|
||||
private val syncStateFlow = MutableStateFlow(SyncState.Idle)
|
||||
|
||||
fun simulateError() {
|
||||
syncStateFlow.value = SyncState.InError
|
||||
syncStateFlow.value = SyncState.Error
|
||||
}
|
||||
|
||||
override suspend fun startSync(): Result<Unit> {
|
||||
syncStateFlow.value = SyncState.Syncing
|
||||
syncStateFlow.value = SyncState.Running
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user