Make SyncState values match SyncServiceState values.
This commit is contained in:
parent
2686e5d912
commit
3c9ecec563
7 changed files with 13 additions and 13 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue