From e2a3e3d2b796f38270e9ef2213cc18af572bcc89 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 1 Aug 2019 12:06:15 +0200 Subject: [PATCH] Raise importance of backup notifications to show them in status bar --- .../java/com/stevesoltys/backup/NotificationBackupObserver.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/backup/NotificationBackupObserver.kt b/app/src/main/java/com/stevesoltys/backup/NotificationBackupObserver.kt index b4d01bb8..035b9f69 100644 --- a/app/src/main/java/com/stevesoltys/backup/NotificationBackupObserver.kt +++ b/app/src/main/java/com/stevesoltys/backup/NotificationBackupObserver.kt @@ -2,7 +2,7 @@ package com.stevesoltys.backup import android.app.NotificationChannel import android.app.NotificationManager -import android.app.NotificationManager.IMPORTANCE_MIN +import android.app.NotificationManager.IMPORTANCE_LOW import android.app.backup.BackupProgress import android.app.backup.IBackupObserver import android.content.Context @@ -25,7 +25,7 @@ class NotificationBackupObserver( private val pm = context.packageManager private val nm = context.getSystemService(NotificationManager::class.java).apply { val title = context.getString(R.string.notification_channel_title) - val channel = NotificationChannel(CHANNEL_ID, title, IMPORTANCE_MIN).apply { + val channel = NotificationChannel(CHANNEL_ID, title, IMPORTANCE_LOW).apply { enableVibration(false) } createNotificationChannel(channel)