From 2529e03028710c80081d8c7c7c99c43e8afc880a Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 3 Mar 2024 11:07:08 +0100 Subject: [PATCH] Show unified unexposed --- .../java/eu/faircode/email/AdapterNavUnified.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterNavUnified.java b/app/src/main/java/eu/faircode/email/AdapterNavUnified.java index 34c2eae245..49673b2812 100644 --- a/app/src/main/java/eu/faircode/email/AdapterNavUnified.java +++ b/app/src/main/java/eu/faircode/email/AdapterNavUnified.java @@ -57,6 +57,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter items = new ArrayList<>(); @@ -130,10 +131,16 @@ public class AdapterNavUnified extends RecyclerView.Adapter 0 || unexposed > 0) { + StringBuilder sb = new StringBuilder(); + if (count > 0) + sb.append(NF.format(count)); + if (unexposed > 0) + sb.append('\u2B51'); + tvItem.setText(context.getString(R.string.title_name_count, name, sb)); + } else tvItem.setText(name); - else - tvItem.setText(context.getString(R.string.title_name_count, name, NF.format(count))); tvItem.setTextColor(count == 0 ? textColorSecondary : colorUnread); tvItem.setTypeface(count == 0 ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD); @@ -217,6 +224,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter folders, boolean expanded) {