From bd45cc2024df11d1d878705dfd4e2bf777b9d004 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 3 May 2020 20:08:29 -0400 Subject: [PATCH] Only alert once for backup/restore progress notifications --- .../main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt index a731f51267..4968894391 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupNotifier.kt @@ -41,6 +41,7 @@ internal class BackupNotifier(private val context: Context) { setContentTitle(context.getString(R.string.creating_backup)) setProgress(0, 0, true) + setOnlyAlertOnce(true) } builder.show(Notifications.ID_BACKUP_PROGRESS) @@ -93,6 +94,7 @@ internal class BackupNotifier(private val context: Context) { } setProgress(maxAmount, progress, false) + setOnlyAlertOnce(true) // Clear old actions if they exist if (mActions.isNotEmpty()) {