From 3b981b657b72be1a0e36a40c267db8655564e306 Mon Sep 17 00:00:00 2001 From: Aitorbp Date: Mon, 29 Jul 2024 16:19:31 +0100 Subject: [PATCH] fix: removed beginWith when it is not necessary --- .../transfers/uploads/UploadFileFromContentUriUseCase.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/owncloudApp/src/main/java/com/owncloud/android/usecases/transfers/uploads/UploadFileFromContentUriUseCase.kt b/owncloudApp/src/main/java/com/owncloud/android/usecases/transfers/uploads/UploadFileFromContentUriUseCase.kt index 7070a55f4d0..b576f7e10f9 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/usecases/transfers/uploads/UploadFileFromContentUriUseCase.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/usecases/transfers/uploads/UploadFileFromContentUriUseCase.kt @@ -73,8 +73,7 @@ class UploadFileFromContentUriUseCase( .then(removeLocalFileWorker) // File is already uploaded, so the original one can be removed if the behaviour is MOVE .enqueue() } else { - workManager.beginWith(uploadFileFromContentUriWorker) - .enqueue() + workManager.enqueue(uploadFileFromContentUriWorker) } Timber.i("Plain upload of ${params.contentUri.path} has been enqueued.")