Skip to content

Commit

Permalink
Fix message overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
subliun committed Feb 16, 2015
1 parent 25d2a9a commit cd9d6be
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ class LeftPaneAdapter(private var context: Context) extends BaseAdapter with Fil
if (`type` == Constants.TYPE_CONTACT) {
if (item.count > 0) {
holder.countText.setVisibility(View.VISIBLE)
holder.countText.setText(java.lang.Integer.toString(item.count))
//limit unread counter to 99
holder.countText.setText(java.lang.Integer.toString(
if (item.count > Constants.UNREAD_COUNT_LIMIT) Constants.UNREAD_COUNT_LIMIT else item.count))
} else {
holder.countText.setVisibility(View.GONE)
}
Expand Down

0 comments on commit cd9d6be

Please sign in to comment.