Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): support for multi-line text in LocalNotifications (#1940) #2552

Merged
merged 6 commits into from
Mar 16, 2020
Merged
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