Comment
This commit is contained in:
parent
be22d5cb07
commit
96d867c1a6
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ class NotificationService(val context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun maybeSetSound(builder: NotificationCompat.Builder, insistent: Boolean, update: Boolean) {
|
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
|
val hasSound = !update && !insistent
|
||||||
if (hasSound) {
|
if (hasSound) {
|
||||||
val defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)
|
val defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)
|
||||||
|
|
Loading…
Reference in a new issue