mirror of https://github.com/M66B/FairEmail.git
Limit extra count
This commit is contained in:
parent
8cdfe4be2e
commit
f4a72b8b9a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue