From d79564021f6cbe15a5aee1e4c6c5b9dff8c2aac7 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 13 Aug 2018 17:35:14 -0400 Subject: [PATCH] Remove extra space below notification text. Special thanks to @dwong Fixes #7905 --- .../notifications/SingleRecipientNotificationBuilder.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java b/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java index a3f889d941..d0b39a1c06 100644 --- a/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java +++ b/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java @@ -258,9 +258,11 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil private CharSequence getBigText(List messageBodies) { SpannableStringBuilder content = new SpannableStringBuilder(); - for (CharSequence message : messageBodies) { - content.append(message); - content.append('\n'); + for (int i = 0; i < messageBodies.size(); i++) { + content.append(messageBodies.get(i)); + if (i < messageBodies.size() - 1) { + content.append('\n'); + } } return content;