mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
removing some notification specifications
This commit is contained in:
@@ -257,14 +257,12 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
|
|||||||
if (isOreoPlus()) {
|
if (isOreoPlus()) {
|
||||||
val audioAttributes = AudioAttributes.Builder()
|
val audioAttributes = AudioAttributes.Builder()
|
||||||
.setUsage(AudioAttributes.USAGE_ALARM)
|
.setUsage(AudioAttributes.USAGE_ALARM)
|
||||||
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
|
|
||||||
.setLegacyStreamType(config.reminderAudioStream)
|
.setLegacyStreamType(config.reminderAudioStream)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
val name = eventTypesDB.getEventTypeWithId(event.eventType)?.getDisplayTitle()
|
val name = eventTypesDB.getEventTypeWithId(event.eventType)?.getDisplayTitle()
|
||||||
val importance = NotificationManager.IMPORTANCE_HIGH
|
val importance = NotificationManager.IMPORTANCE_HIGH
|
||||||
NotificationChannel(channelId, name, importance).apply {
|
NotificationChannel(channelId, name, importance).apply {
|
||||||
setBypassDnd(true)
|
|
||||||
enableLights(true)
|
enableLights(true)
|
||||||
lightColor = event.color
|
lightColor = event.color
|
||||||
enableVibration(config.vibrateOnReminder)
|
enableVibration(config.vibrateOnReminder)
|
||||||
|
Reference in New Issue
Block a user