Refactor: Use android plural handling

This commit is contained in:
Dr. Tobias Quathamer
2017-02-06 14:39:48 +01:00
parent e05b31a76b
commit 67e028502d
9 changed files with 34 additions and 45 deletions
@@ -3198,7 +3198,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
else if (view instanceof ChatUnreadCell)
{
ChatUnreadCell unreadCell = (ChatUnreadCell) view;
unreadCell.setText(LocaleController.formatPluralString("NewMessages", markerUnreadCount));
unreadCell.setText(mContext.getResources().getQuantityString(R.plurals.NewMessages, markerUnreadCount, markerUnreadCount));
}
}
}