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
commit 876a327826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)