Change:Media background notification set importance_low to stop noise/vibration

This commit is contained in:
advplyr 2022-02-16 16:49:20 -06:00
parent abb41979f4
commit fd4974dfce

View file

@ -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