From 032a76cbe2ab6ee78af0e73977bfe683c800124d Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Thu, 21 Dec 2023 16:38:45 +0100 Subject: [PATCH] Fix bug in SyncWorker.kt --- .../java/foundation/e/drive/periodicScan/FullScanWorker.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/drive/periodicScan/FullScanWorker.kt b/app/src/main/java/foundation/e/drive/periodicScan/FullScanWorker.kt index 855f71ba..c354123b 100644 --- a/app/src/main/java/foundation/e/drive/periodicScan/FullScanWorker.kt +++ b/app/src/main/java/foundation/e/drive/periodicScan/FullScanWorker.kt @@ -64,12 +64,12 @@ class FullScanWorker(private val context: Context, private val workerParams: Wor return Result.success() } - val remoteSyncRequests = scanRemoteFiles(account, syncFolders) + val remoteSyncRequests = scanRemoteFiles(account, syncFolders.toMutableList()) syncRequests.putAll(remoteSyncRequests) Timber.d("${remoteSyncRequests.size} request collected from cloud") - val localSyncRequests = scanLocalFiles(syncFolders) + val localSyncRequests = scanLocalFiles(syncFolders.toMutableList()) syncRequests.putAll(localSyncRequests) Timber.d("${localSyncRequests.size} request collected from device") -- GitLab