diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-13 20:54:25 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-13 20:54:25 +0200 |
commit | 0944064e2cf831f2be1d57d4d44505294f1bf21b (patch) | |
tree | 7866b2570f4c4045478edd3987263d613ae25839 | |
parent | d25353ad3ec4b30356af6b47bfc95217b7a56613 (diff) |
unread/failed count: show >99 as infinity symbol
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/ConversationAdapter.java | 4 |
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); } |