From a0c821f6ac60d805395285f0a64ce22ca489a4ca Mon Sep 17 00:00:00 2001 From: nicky g Date: Thu, 19 Dec 2013 02:44:42 +0530 Subject: [PATCH] set unread message count in notifications. was not able to squash commit requesting new pull --- .../thoughtcrime/securesms/notifications/MessageNotifier.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index 9351c5580..d19636424 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -160,6 +160,7 @@ public class MessageNotifier { builder.setContentTitle(recipient.toShortString()); builder.setContentText(notifications.get(0).getText()); builder.setContentIntent(notifications.get(0).getPendingIntent(context)); + builder.setContentInfo(String.valueOf(notificationState.getMessageCount())); if (masterSecret != null) { builder.addAction(R.drawable.check, context.getString(R.string.MessageNotifier_mark_as_read), @@ -201,6 +202,8 @@ public class MessageNotifier { builder.setContentText(String.format(context.getString(R.string.MessageNotifier_most_recent_from_s), notifications.get(0).getIndividualRecipientName())); builder.setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, RoutingActivity.class), 0)); + + builder.setContentInfo(String.valueOf(notificationState.getMessageCount())); if (masterSecret != null) { builder.addAction(R.drawable.check, context.getString(R.string.MessageNotifier_mark_all_as_read),