From 982e5904f93451341708822d715eef52f51c8378 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 13 Oct 2021 23:09:01 +0200 Subject: [PATCH] Revert "removing some notification specifications" This reverts commit 56b36b77b4fa9e6f6faa232158180fa92c0a79c7. --- .../com/simplemobiletools/calendar/pro/extensions/Context.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt index d353e0cea..f6f94af1c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt @@ -257,12 +257,14 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content: if (isOreoPlus()) { val audioAttributes = AudioAttributes.Builder() .setUsage(AudioAttributes.USAGE_ALARM) + .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) .setLegacyStreamType(config.reminderAudioStream) .build() val name = eventTypesDB.getEventTypeWithId(event.eventType)?.getDisplayTitle() val importance = NotificationManager.IMPORTANCE_HIGH NotificationChannel(channelId, name, importance).apply { + setBypassDnd(true) enableLights(true) lightColor = event.color enableVibration(config.vibrateOnReminder)