From ecb89dd33a6ccb20f5f0201d269b6bb4462753c7 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Fri, 31 May 2024 17:13:00 +0200 Subject: [PATCH] Fix upload notification blinking Signed-off-by: alperozturk --- .../java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt b/app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt index 404bdd35d0..a254456236 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt @@ -100,6 +100,7 @@ class FileUploadWorker( backgroundJobManager.logStartOfWorker(BackgroundJobManagerImpl.formatClassTag(this::class)) val result = retrievePagesBySortingUploadsByID() backgroundJobManager.logEndOfWorker(BackgroundJobManagerImpl.formatClassTag(this::class), result) + notificationManager.dismissNotification() result } catch (t: Throwable) { Log_OC.e(TAG, "Error caught at FileUploadWorker $t") @@ -246,7 +247,6 @@ class FileUploadWorker( if (!isStopped || !result.isCancelled) { uploadsStorageManager.updateDatabaseUploadResult(result, uploadFileOperation) notifyUploadResult(uploadFileOperation, result) - notificationManager.dismissNotification() } }