Limit extra count

This commit is contained in:
M66B 2022-03-06 10:54:35 +01:00
parent 8cdfe4be2e
commit f4a72b8b9a
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ public class AdapterNavMenu extends RecyclerView.Adapter<AdapterNavMenu.ViewHold
ivBadge.setVisibility(count == null || count == 0 || expanded
? View.GONE : View.VISIBLE);
tvCount.setText(count == null ? null : Integer.toString(count));
tvCount.setText(count == null ? null : (count < 100 ? Integer.toString(count) : "99+"));
tvCount.setVisibility(count == null || count == 0 || expanded || !menu.getExtraCount()
? View.GONE : View.VISIBLE);