Merge pull request #1615 from Aga-C/add-expandable-notification

Added an expandable notification (#723)
This commit is contained in:
Tibor Kaputa
2022-01-14 10:25:22 +01:00
committed by GitHub

View File

@@ -300,6 +300,7 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
.setContentTitle(contentTitle)
.setContentText(contentText)
.setSmallIcon(R.drawable.ic_calendar_vector)
.setStyle(NotificationCompat.BigTextStyle().bigText(contentText))
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setDefaults(Notification.DEFAULT_LIGHTS)