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:
parent
e0ac080583
commit
04b324fd19
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue