aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-09 20:40:13 +0100
committerChristian Schneppe <christian@pix-art.de>2017-03-09 20:40:13 +0100
commit251be239424f95eac0ddc9db5a5303e8b40f217e (patch)
tree1b237c314d564b5860858d2bff5b39e76309285c /src/main/java/de/pixart/messenger/services
parent5ab0d6fac5c0b4ee5a68ce0cc376b96eea888742 (diff)
changed string from unread conversation to messages in notification
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java
index c38c35600..a571c1816 100644
--- a/src/main/java/de/pixart/messenger/services/NotificationService.java
+++ b/src/main/java/de/pixart/messenger/services/NotificationService.java
@@ -425,13 +425,14 @@ public class NotificationService {
style.addLine(styledString);
}
builder.setStyle(style);
- if (messages.size() == 1) {
+ int count = messages.size();
+ if (count == 1) {
final String name = UIHelper.getMessageDisplayName(messages.get(0));
styledString = new SpannableString(name + ": " + messages.get(0).getBody());
styledString.setSpan(new StyleSpan(Typeface.BOLD), 0, name.length(), 0);
builder.setContentText(styledString);
} else {
- builder.setContentText(messages.size() + " " + mXmppConnectionService.getString(R.string.unread_conversations));
+ builder.setContentText(mXmppConnectionService.getResources().getQuantityString(R.plurals.x_messages,count,count));
}
}
}