From 976e898656a59eb9cc5a7b4d0a0f8e2a978fc875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Mon, 6 Jun 2022 21:36:06 +0100 Subject: [PATCH] Mark background backup notification as ongoing --- .../seedvault/ui/notification/BackupNotificationManager.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt b/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt index 8b143160..de754606 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt @@ -136,6 +136,7 @@ internal class BackupNotificationManager(private val context: Context) { val notification = Builder(context, CHANNEL_ID_OBSERVER).apply { setSmallIcon(R.drawable.ic_cloud_upload) setContentTitle(context.getString(R.string.notification_title)) + setOngoing(true) setShowWhen(false) setWhen(System.currentTimeMillis()) setProgress(0, 0, true)