From 96d867c1a63a2e662de2385d6af0b7a0bbecc98b Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Sun, 4 Dec 2022 20:28:57 -0500 Subject: [PATCH] Comment --- app/src/main/java/io/heckel/ntfy/msg/NotificationService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/heckel/ntfy/msg/NotificationService.kt b/app/src/main/java/io/heckel/ntfy/msg/NotificationService.kt index f491168..53e7fe9 100644 --- a/app/src/main/java/io/heckel/ntfy/msg/NotificationService.kt +++ b/app/src/main/java/io/heckel/ntfy/msg/NotificationService.kt @@ -99,6 +99,7 @@ class NotificationService(val context: Context) { } private fun maybeSetSound(builder: NotificationCompat.Builder, insistent: Boolean, update: Boolean) { + // Note that the sound setting is ignored in Android => O (26) in favor of notification channels val hasSound = !update && !insistent if (hasSound) { val defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)