mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
Change:Media background notification set importance_low to stop noise/vibration
This commit is contained in:
@@ -150,7 +150,7 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
|
|||||||
@RequiresApi(Build.VERSION_CODES.O)
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
private fun createNotificationChannel(channelId: String, channelName: String): String {
|
private fun createNotificationChannel(channelId: String, channelName: String): String {
|
||||||
val chan = NotificationChannel(channelId,
|
val chan = NotificationChannel(channelId,
|
||||||
channelName, NotificationManager.IMPORTANCE_HIGH)
|
channelName, NotificationManager.IMPORTANCE_LOW)
|
||||||
chan.lightColor = Color.DKGRAY
|
chan.lightColor = Color.DKGRAY
|
||||||
chan.lockscreenVisibility = Notification.VISIBILITY_PUBLIC
|
chan.lockscreenVisibility = Notification.VISIBILITY_PUBLIC
|
||||||
val service = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
val service = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||||
|
|||||||
Reference in New Issue
Block a user