From a8bff664bb39a88178d385da4f17b0ffd1acaf50 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Fri, 29 Nov 2024 16:54:03 +0100 Subject: [PATCH] add todos Signed-off-by: alperozturk --- .../main/java/com/nextcloud/client/jobs/sync/SyncWorker.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/nextcloud/client/jobs/sync/SyncWorker.kt b/app/src/main/java/com/nextcloud/client/jobs/sync/SyncWorker.kt index 5d78387ae0..6eefed005f 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/sync/SyncWorker.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/sync/SyncWorker.kt @@ -29,6 +29,7 @@ class SyncWorker( @Suppress("DEPRECATION") override suspend fun doWork(): Result { + // TODO add notifications Log_OC.d(TAG, "SyncWorker started") val filePaths = inputData.getStringArray(FILE_PATHS) @@ -44,6 +45,7 @@ class SyncWorker( var result = true filePaths.forEach { path -> fileDataStorageManager.getFileByDecryptedRemotePath(path)?.let { file -> + // TODO dont download downloaded files?? val operation = DownloadFileOperation(user, file, context).execute(client) Log_OC.d(TAG, "Syncing file: " + file.decryptedRemotePath) if (!operation.isSuccess) { @@ -52,6 +54,9 @@ class SyncWorker( } } + // TODO add isDownloading + // TODO add cancel only one file download + return if (result) { Log_OC.d(TAG, "SyncWorker completed") Result.success()