From ddc038106e6b193f66fffb7630f653da1884f563 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 11 Oct 2022 08:42:06 +0200 Subject: [PATCH] Check for all trashed --- .../eu/faircode/email/AdapterMessage.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 4136d7a525..4f28c3f84b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -8005,8 +8005,7 @@ public class AdapterMessage extends RecyclerView.Adapter 1 && - EntityFolder.TRASH.equals(message.folderType)) + if (filter_trash && EntityFolder.TRASH.equals(message.folderType) && !allTrashed(message)) return R.layout.item_message_duplicate; return (compact ? R.layout.item_message_compact : R.layout.item_message_normal); @@ -8056,8 +8055,7 @@ public class AdapterMessage extends RecyclerView.Adapter 1 && - EntityFolder.TRASH.equals(message.folderType))) { + (filter_trash && EntityFolder.TRASH.equals(message.folderType) && !allTrashed(message))) { holder.card.setCardBackgroundColor(message.folderColor == null ? Color.TRANSPARENT : ColorUtils.setAlphaComponent(message.folderColor, 128)); @@ -8084,6 +8082,19 @@ public class AdapterMessage extends RecyclerView.Adapter