|
|
@ -38,7 +38,7 @@ class WorkManagerSyncManager @Inject constructor(
|
|
|
|
) : SyncManager {
|
|
|
|
) : SyncManager {
|
|
|
|
override val isSyncing: Flow<Boolean> =
|
|
|
|
override val isSyncing: Flow<Boolean> =
|
|
|
|
WorkManager.getInstance(context).getWorkInfosForUniqueWorkFlow(SyncWorkName)
|
|
|
|
WorkManager.getInstance(context).getWorkInfosForUniqueWorkFlow(SyncWorkName)
|
|
|
|
.map(MutableList<WorkInfo>::anyRunning)
|
|
|
|
.map(List<WorkInfo>::anyRunning)
|
|
|
|
.conflate()
|
|
|
|
.conflate()
|
|
|
|
|
|
|
|
|
|
|
|
override fun requestSync() {
|
|
|
|
override fun requestSync() {
|
|
|
|