From 5137bc65746e62298d820b4c128583f00400f096 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Wed, 30 Oct 2024 12:07:37 +0100 Subject: [PATCH] every user can cancel the worker Signed-off-by: alperozturk --- .../owncloud/android/ui/activity/InternalTwoWaySyncActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/ui/activity/InternalTwoWaySyncActivity.kt b/app/src/main/java/com/owncloud/android/ui/activity/InternalTwoWaySyncActivity.kt index fdc5c149f4..fbd0dcc26a 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/InternalTwoWaySyncActivity.kt +++ b/app/src/main/java/com/owncloud/android/ui/activity/InternalTwoWaySyncActivity.kt @@ -94,7 +94,7 @@ class InternalTwoWaySyncActivity : DrawerActivity(), Injectable { private fun disableTwoWaySyncAndWorkers() { lifecycleScope.launch(Dispatchers.IO) { - backgroundJobManager.cancelTwoWaySyncJob(user.get()) + backgroundJobManager.cancelTwoWaySyncJob() val folders = fileDataStorageManager.getInternalTwoWaySyncFolders(user.get()) folders.forEach { folder ->