Skip to content

Commit

Permalink
fix(android): support for multi-line text in LocalNotifications (#2552)
Browse files Browse the repository at this point in the history
  • Loading branch information
naranjamecanica authored Mar 16, 2020
1 parent c6a3b3b commit 59d02ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ private void buildNotification(NotificationManagerCompat notificationManager, Lo
.setGroupSummary(localNotification.isGroupSummary())
.setDefaults(Notification.DEFAULT_SOUND | Notification.DEFAULT_VIBRATE | Notification.DEFAULT_LIGHTS);


// support multiline text
mBuilder.setStyle(new NotificationCompat.BigTextStyle().bigText(localNotification.getBody()));

String sound = localNotification.getSound();
if (sound != null) {
Uri soundUri = Uri.parse(sound);
Expand Down

0 comments on commit 59d02ab

Please sign in to comment.