Enable screen blink (LED) for PRIORITY_HIGH notifications
PRIORITY_HIGH now shows the notification LED / screen blink alongside the vibration and DND bypass, making it more visible when the phone is face-down or in a pocket. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e3231970a3
commit
5c746bd4b9
1 changed files with 1 additions and 0 deletions
|
|
@ -380,6 +380,7 @@ class NotificationService(val context: Context) {
|
|||
PRIORITY_LOW -> NotificationChannel(channelId, context.getString(R.string.common_priority_low_name), NotificationManager.IMPORTANCE_LOW)
|
||||
PRIORITY_HIGH -> {
|
||||
val channel = NotificationChannel(channelId, context.getString(R.string.common_priority_high_name), NotificationManager.IMPORTANCE_HIGH)
|
||||
channel.enableLights(true)
|
||||
channel.enableVibration(true)
|
||||
channel.setBypassDnd(true) // Bypass DND but do not play insistent alarm
|
||||
channel.vibrationPattern = longArrayOf(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue