mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Refactor: Use android plural handling
This commit is contained in:
@@ -178,7 +178,7 @@ public class DialogsSearchAdapter extends RecyclerView.Adapter {
|
||||
case ROWTYPE_HEADLINE: {
|
||||
GreySectionCell headlineCell = (GreySectionCell) viewHolder.itemView;
|
||||
if (i == rowChatsHeadline) {
|
||||
headlineCell.setText(LocaleController.formatPluralString("Chats", m_chatlistCnt));
|
||||
headlineCell.setText(mContext.getResources().getQuantityString(R.plurals.Chats, m_chatlistCnt, m_chatlistCnt));
|
||||
} else if (i == rowMsgsHeadline) {
|
||||
headlineCell.setText(mContext.getResources().getQuantityString(R.plurals.messages, m_msgIds.length, m_msgIds.length));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user