From dcd8bb16a2a4fcd574d6b947b98a03b787413b07 Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Tue, 4 Sep 2018 00:02:37 +0200 Subject: [PATCH] Fix notification crash Signed-off-by: Jorge Ruesga --- .../main/java/com/ruesga/rview/misc/NotificationsHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/ruesga/rview/misc/NotificationsHelper.java b/app/src/main/java/com/ruesga/rview/misc/NotificationsHelper.java index f509094f..9054a646 100644 --- a/app/src/main/java/com/ruesga/rview/misc/NotificationsHelper.java +++ b/app/src/main/java/com/ruesga/rview/misc/NotificationsHelper.java @@ -215,7 +215,7 @@ private static void createBundledNotifications( NotificationEntity lastEntity = entities.get(entities.size() - 1); NotificationCompat.Builder builder = createNotificationBuilder(ctx, account, lastEntity, feedback); - Person p = new Person.Builder().build(); + Person p = new Person.Builder().setName(account.getAccountDisplayName()).build(); NotificationCompat.MessagingStyle style = new NotificationCompat.MessagingStyle(p) .setConversationTitle(lastEntity.mNotification.subject); for (NotificationEntity entity : entities) {