use max priority for reminders

This commit is contained in:
tibbi 2018-06-12 14:54:03 +02:00
parent a92db0efdb
commit 73ace88757
1 changed files with 2 additions and 2 deletions

View File

@ -214,12 +214,12 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
val contentTitle = if (publicVersion) resources.getString(R.string.app_name) else event.title
val contentText = if (publicVersion) resources.getString(R.string.public_event_notification_text) else content
val builder = NotificationCompat.Builder(this)
val builder = NotificationCompat.Builder(this, channelId)
.setContentTitle(contentTitle)
.setContentText(contentText)
.setSmallIcon(R.drawable.ic_calendar)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setDefaults(Notification.DEFAULT_LIGHTS)
.setAutoCancel(true)
.setSound(Uri.parse(soundUri), AudioManager.STREAM_ALARM)