Merge pull request #1615 from Aga-C/add-expandable-notification
Added an expandable notification (#723)
This commit is contained in:
commit
876a327826
|
@ -300,6 +300,7 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
|
||||||
.setContentTitle(contentTitle)
|
.setContentTitle(contentTitle)
|
||||||
.setContentText(contentText)
|
.setContentText(contentText)
|
||||||
.setSmallIcon(R.drawable.ic_calendar_vector)
|
.setSmallIcon(R.drawable.ic_calendar_vector)
|
||||||
|
.setStyle(NotificationCompat.BigTextStyle().bigText(contentText))
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setPriority(NotificationCompat.PRIORITY_MAX)
|
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||||
.setDefaults(Notification.DEFAULT_LIGHTS)
|
.setDefaults(Notification.DEFAULT_LIGHTS)
|
||||||
|
|
Loading…
Reference in New Issue