Compare commits

..

3 commits

Author SHA1 Message Date
Mikael Hugo
5c746bd4b9 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>
2026-05-15 06:48:35 +02:00
Mikael Hugo
e3231970a3 Allow PRIORITY_HIGH notifications to bypass DND with normal beep
Some checks are pending
Build F-Droid Debug APK / build (push) Waiting to run
Build Play Debug APK / build (push) Waiting to run
PRIORITY_MAX still plays the insistent looping alarm until manually stopped.
PRIORITY_HIGH now also bypasses DND but uses the standard notification
sound + vibration pattern (no looping alarm).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-15 06:48:01 +02:00
Mikael Hugo
70806dcadc chore: add centralcloud-release.keystore to gitignore 2026-05-15 04:51:35 +02:00
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -57,3 +57,4 @@ proguard-project.txt
# Android Studio/IDEA
*.iml
.idea
centralcloud-release.keystore

View file

@ -380,7 +380,9 @@ 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(
pause, 100, pause, 100, pause, 100,
pause, 2000