mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-30 10:25:01 +01:00
use max priority for reminders
This commit is contained in:
parent
a92db0efdb
commit
73ace88757
@ -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 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 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)
|
.setContentTitle(contentTitle)
|
||||||
.setContentText(contentText)
|
.setContentText(contentText)
|
||||||
.setSmallIcon(R.drawable.ic_calendar)
|
.setSmallIcon(R.drawable.ic_calendar)
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setPriority(Notification.PRIORITY_HIGH)
|
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||||
.setDefaults(Notification.DEFAULT_LIGHTS)
|
.setDefaults(Notification.DEFAULT_LIGHTS)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setSound(Uri.parse(soundUri), AudioManager.STREAM_ALARM)
|
.setSound(Uri.parse(soundUri), AudioManager.STREAM_ALARM)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user