"Starting uploads" notification is cleaned up when "Finishing uploads" notification pops up (#4719)

* Dialog can't be dismissed

* Dialog can't be dismissed

* Cleaned up "starting upload" notification before finishing starts
This commit is contained in:
Ayan Sarkar 2021-12-10 05:26:55 +05:30 committed by GitHub
parent 8c573eda26
commit 674b033d32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,6 +127,7 @@ class UploadWorker(var appContext: Context, workerParams: WorkerParameters) :
false
)
}
notificationManager?.cancel(PROCESSING_UPLOADS_NOTIFICATION_TAG, PROCESSING_UPLOADS_NOTIFICATION_ID)
notificationManager?.notify(
currentNotificationTag,
currentNotificationID,