Android notification: make longer text readable.

If text is longer than one line, this change allows expanding the notification to make the entire text readable.
This commit is contained in:
Johannes Mockenhaupt 2020-04-01 16:47:36 +02:00
parent e0ac080583
commit 04b324fd19
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -116,6 +116,7 @@ class NotificationStore @Inject constructor(
.setSmallIcon(smallIcon)
.setLargeIcon(largeIcon)
.setContentText(n.text)
.setStyle(NotificationCompat.BigTextStyle().bigText(n.text))
.setPriority(NotificationCompat.PRIORITY_MAX)
.setDeleteIntent(deleteIntent(n.id))
if (n.level == Notification.URGENT) {