mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Make it possible to dismiss failure notification
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
This commit is contained in:
parent
b641121266
commit
bfc9f57b2a
@ -258,9 +258,13 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
|
|||||||
notification = mBuilder!!
|
notification = mBuilder!!
|
||||||
.setContentTitle(failureTitle)
|
.setContentTitle(failureTitle)
|
||||||
.setContentText(failureText)
|
.setContentText(failureText)
|
||||||
|
.setOngoing(false)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
mNotifyManager!!.notify(notificationId, notification)
|
// Cancel original notification
|
||||||
|
mNotifyManager?.cancel(notificationId)
|
||||||
|
// Then show information about failure
|
||||||
|
mNotifyManager!!.notify(SystemClock.uptimeMillis().toInt(), notification)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
Loading…
Reference in New Issue
Block a user