From a40aa805acc41994fba7f88e645cf1a49e1be17e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 17 Apr 2022 18:34:32 +0200 Subject: [PATCH] Hide in unified folder list if all messages are read --- .../main/java/eu/faircode/email/AdapterFolder.java | 13 +++---------- app/src/main/java/eu/faircode/email/DB.java | 1 - app/src/main/res/layout/fragment_folder.xml | 14 +++++++++++++- app/src/main/res/values/strings.xml | 1 + 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index d4633192eb..1c65b8f0d9 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -226,7 +226,8 @@ public class AdapterFolder extends RecyclerView.Adapter filtered = new ArrayList<>(); for (TupleFolderEx folder : folders) - if (show_hidden || - !(folder.hide || - (folder.hide_seen && folder.unseen + folder.childs_unseen == 0))) + if (show_hidden || !folder.hide_seen || folder.unseen + folder.childs_unseen > 0) filtered.add(folder); if (filtered.size() > 0) @@ -1473,9 +1472,6 @@ public class AdapterFolder extends RecyclerView.Adapter + + + app:layout_constraintTop_toBottomOf="@id/tvHideSeenHint" /> Edit account name Hide folder Hide if all messages are read + Only in the unified folder list shown on the start screen Show in unified inbox Show in navigation menu Synchronize (receive messages)