mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Fix upload notification blinking
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
e17e892bf0
commit
ecb89dd33a
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue