diff --git a/app/src/main/java/eu/faircode/email/AdapterAccount.java b/app/src/main/java/eu/faircode/email/AdapterAccount.java index 50e2f01f97..e73d4642e0 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAccount.java +++ b/app/src/main/java/eu/faircode/email/AdapterAccount.java @@ -91,6 +91,7 @@ public class AdapterAccount extends RecyclerView.Adapter all = new ArrayList<>(); @@ -225,9 +226,15 @@ public class AdapterAccount extends RecyclerView.Adapter 0) - tvName.setText(context.getString(R.string.title_name_count, account.name, NF.format(account.unseen))); - else + int unexposed = (show_unexposed ? account.unexposed : 0); + if (account.unseen > 0 || unexposed > 0) { + StringBuilder sb = new StringBuilder(); + if (account.unseen > 0) + sb.append(NF.format(account.unseen)); + if (unexposed > 0) + sb.append('\u207A'); + tvName.setText(context.getString(R.string.title_name_count, account.name, sb)); + } else tvName.setText(account.name); tvName.setTypeface(account.unseen > 0 ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT); @@ -881,6 +888,7 @@ public class AdapterAccount extends RecyclerView.Adapter 0) + int unexposed = (show_unexposed ? folder.unexposed : 0); + + if (unseen > 0 || unexposed > 0) { + StringBuilder sb = new StringBuilder(); + if (unseen > 0) { + if (cunseen > 0) + sb.append('\u25BE'); + sb.append(NF.format(unseen)); + } + if (unexposed > 0) + sb.append('\u207A'); tvName.setText(context.getString(R.string.title_name_count, - folder.getDisplayName(context, folder.parent_ref == null ? null : folder.parent_ref), - (cunseen > 0 ? "▾" : "") + NF.format(unseen))); - else + folder.getDisplayName(context, folder.parent_ref), sb)); + } else tvName.setText(folder.getDisplayName(context, folder.parent_ref)); tvName.setTypeface(unseen > 0 ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT); @@ -1463,6 +1473,7 @@ public class AdapterFolder extends RecyclerView.Adapter 0) + sb.append(NF.format(count)); + if (unexposed > 0) + sb.append('\u207A'); + tvItem.setText(context.getString(R.string.title_name_count, name, sb)); + } tvItem.setTextColor(count == 0 ? textColorSecondary : colorUnread); tvItem.setTypeface(count == 0 ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD); @@ -287,6 +295,7 @@ public class AdapterNavAccountFolder extends RecyclerView.Adapter + + Show number of locally stored messages in the navigation menu Show number of unread drafts in the navigation menu Show the number of unread messages in the pinned navigation menu + Show a small plus sign for accounts/folders with unseen messages Show on start screen Use card style instead of tabular style The account category can be configured in the advanced account options via the main settings screen