This commit is contained in:
parent
fc09c5fa86
commit
b4cd31520d
|
@ -638,7 +638,8 @@ public class NotificationService {
|
||||||
} else {
|
} else {
|
||||||
if (messages.get(0).getConversation().getMode() == Conversation.MODE_SINGLE) {
|
if (messages.get(0).getConversation().getMode() == Conversation.MODE_SINGLE) {
|
||||||
builder.setStyle(new NotificationCompat.BigTextStyle().bigText(getMergedBodies(messages)));
|
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 {
|
} else {
|
||||||
final NotificationCompat.InboxStyle style = new NotificationCompat.InboxStyle();
|
final NotificationCompat.InboxStyle style = new NotificationCompat.InboxStyle();
|
||||||
SpannableString styledString;
|
SpannableString styledString;
|
||||||
|
|
Loading…
Reference in New Issue