diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-12-15 20:58:45 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-12-15 20:58:45 +0100 |
commit | a983af2ca0cffc5fc5c247e20b131271eb4011c4 (patch) | |
tree | f94e387b754dbefb8d397af5030170699ede871b /src/main/java/de/pixart/messenger/services | |
parent | 05f847766f04789d058cf3fa407fbdb231adc4f2 (diff) |
display last not first message in notification
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index f49f50a97..c4fa85322 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -651,7 +651,8 @@ public class NotificationService { } else { if (messages.get(0).getConversation().getMode() == Conversation.MODE_SINGLE) { builder.setStyle(new NotificationCompat.BigTextStyle().bigText(getMergedBodies(messages))); - builder.setContentText(UIHelper.getMessagePreview(mXmppConnectionService, messages.get(0)).first); + builder.setContentText(UIHelper.getMessagePreview(mXmppConnectionService, messages.get(messages.size() - 1)).first); + builder.setNumber(messages.size()); } else { final NotificationCompat.InboxStyle style = new NotificationCompat.InboxStyle(); SpannableString styledString; |