diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 01a9d4c9ef..5958fa2ab3 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -5822,16 +5822,18 @@ public class AdapterMessage extends RecyclerView.Adapter>() { @Override protected List onExecute(Context context, Bundle args) throws Throwable { long[] ids = args.getLongArray("ids"); + String type = args.getString("type"); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); - boolean filter_seen = prefs.getBoolean("filter_seen", false); - boolean filter_unflagged = prefs.getBoolean("filter_unflagged", false); - boolean filter_snoozed = prefs.getBoolean("filter_snoozed", true); + boolean filter_seen = prefs.getBoolean(FragmentMessages.getFilter("seen", type), false); + boolean filter_unflagged = prefs.getBoolean(FragmentMessages.getFilter("unflagged", type), false); + boolean filter_snoozed = prefs.getBoolean(FragmentMessages.getFilter("snoozed", type), true); List removed = new ArrayList<>(); diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index 588b0126e0..bcfd55b6de 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -384,8 +384,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback