From fd4974dfced3d02741c4424c24883f6abdcadd1f Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 16 Feb 2022 16:49:20 -0600 Subject: [PATCH] Change:Media background notification set importance_low to stop noise/vibration --- .../java/com/audiobookshelf/app/PlayerNotificationService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt b/android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt index cc24f0b0..b78abe29 100644 --- a/android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt +++ b/android/app/src/main/java/com/audiobookshelf/app/PlayerNotificationService.kt @@ -150,7 +150,7 @@ class PlayerNotificationService : MediaBrowserServiceCompat() { @RequiresApi(Build.VERSION_CODES.O) private fun createNotificationChannel(channelId: String, channelName: String): String { val chan = NotificationChannel(channelId, - channelName, NotificationManager.IMPORTANCE_HIGH) + channelName, NotificationManager.IMPORTANCE_LOW) chan.lightColor = Color.DKGRAY chan.lockscreenVisibility = Notification.VISIBILITY_PUBLIC val service = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager