Fix upload notification blinking

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-05-31 17:13:00 +02:00 committed by Alper Öztürk
parent e17e892bf0
commit ecb89dd33a

View file

@ -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()
}
}