mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-16 11:50:47 +01:00
removing some notification specifications
This commit is contained in:
parent
7c432960f2
commit
56b36b77b4
@ -257,14 +257,12 @@ 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…
x
Reference in New Issue
Block a user