Make SyncState values match SyncServiceState values.

This commit is contained in:
Benoit Marty 2023-07-19 14:44:53 +02:00
parent 2686e5d912
commit 3c9ecec563
7 changed files with 13 additions and 13 deletions

View file

@ -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)
}