From 1f89ae19abbb04b3c8f00385db839f0ec7480cf7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Sep 2021 08:24:11 +0200 Subject: [PATCH] Apply filter archive to bnv actions --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 81c058cd42..8a78965b24 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -5488,6 +5488,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. args.putLong("account", account); args.putString("thread", thread); args.putLong("id", id); + args.putBoolean("filter_archive", filter_archive); new SimpleTask() { @Override @@ -5495,6 +5496,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. long aid = args.getLong("account"); String thread = args.getString("thread"); long id = args.getLong("id"); + boolean filter_archive = args.getBoolean("filter_archive"); EntityAccount account; EntityFolder trash; @@ -5520,6 +5522,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. for (EntityMessage message : messages) { EntityFolder folder = db.folder().getFolder(message.folder); + if (filter_archive && EntityFolder.ARCHIVE.equals(folder.type)) + continue; if (!folder.read_only && !EntityFolder.DRAFTS.equals(folder.type) &&