Revert "removing some notification specifications"
This reverts commit 56b36b77b4
.
This commit is contained in:
parent
f54c498f0a
commit
982e5904f9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue