Enable screen blink (LED) for PRIORITY_HIGH notifications
Some checks failed
Build F-Droid Debug APK / build (push) Failing after 16s
Build Play Debug APK / build (push) Failing after 8s

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:
Mikael Hugo 2026-05-15 06:48:35 +02:00
parent e3231970a3
commit 5c746bd4b9

View file

@ -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_LOW -> NotificationChannel(channelId, context.getString(R.string.common_priority_low_name), NotificationManager.IMPORTANCE_LOW)
PRIORITY_HIGH -> { PRIORITY_HIGH -> {
val channel = NotificationChannel(channelId, context.getString(R.string.common_priority_high_name), NotificationManager.IMPORTANCE_HIGH) val channel = NotificationChannel(channelId, context.getString(R.string.common_priority_high_name), NotificationManager.IMPORTANCE_HIGH)
channel.enableLights(true)
channel.enableVibration(true) channel.enableVibration(true)
channel.setBypassDnd(true) // Bypass DND but do not play insistent alarm channel.setBypassDnd(true) // Bypass DND but do not play insistent alarm
channel.vibrationPattern = longArrayOf( channel.vibrationPattern = longArrayOf(