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 855f71babea8e31c98bd6c125244aa0599e0a04b..c354123be1f89d28682ee7a45b2e48b65032270b 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")