aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-04-13 20:54:25 +0200
committerChristian Schneppe <christian@pix-art.de>2017-04-13 20:54:25 +0200
commit0944064e2cf831f2be1d57d4d44505294f1bf21b (patch)
tree7866b2570f4c4045478edd3987263d613ae25839 /src/main/java/de/pixart/messenger/ui
parentd25353ad3ec4b30356af6b47bfc95217b7a56613 (diff)
unread/failed count: show >99 as infinity symbol
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java
index bcbf6ba3b..d2d001981 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java
@@ -110,13 +110,13 @@ public class ConversationAdapter extends ArrayAdapter<Conversation> {
if (unreadcount > 0) {
mUnread.setVisibility(View.VISIBLE);
- mUnread.setText(String.valueOf(unreadcount));
+ mUnread.setText(unreadcount > 99 ? "\u221E" : String.valueOf(unreadcount));
} else {
mUnread.setVisibility(View.GONE);
}
if (failedcount > 0) {
mFailed.setVisibility(View.VISIBLE);
- mFailed.setText(String.valueOf(failedcount));
+ mFailed.setText(failedcount > 99 ? "\u221E" : String.valueOf(failedcount));
} else {
mFailed.setVisibility(View.GONE);
}