From 703d2b16acd26186e5854094f98f6a399b846c62 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 1 Feb 2021 20:24:20 +0100 Subject: [PATCH] Seen/flag single messages on swipe --- 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 44a5a8fcec..e5f00a386c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2929,6 +2929,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. Bundle args = new Bundle(); args.putLongArray("ids", id == null ? getSelection() : new long[]{id}); args.putBoolean("seen", seen); + args.putBoolean("threading", threading && id == null); //if (selectionTracker != null) // selectionTracker.clearSelection(); @@ -2938,6 +2939,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. protected Void onExecute(Context context, Bundle args) { long[] ids = args.getLongArray("ids"); boolean seen = args.getBoolean("seen"); + boolean threading = args.getBoolean("threading"); DB db = DB.getInstance(context); try { @@ -3065,6 +3067,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. args.putBoolean("flagged", flagged); if (color != null) args.putInt("color", color); + args.putBoolean("threading", threading && id == null); //selectionTracker.clearSelection(); @@ -3074,6 +3077,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. long[] ids = args.getLongArray("ids"); boolean flagged = args.getBoolean("flagged"); Integer color = (args.containsKey("color") ? args.getInt("color") : null); + boolean threading = args.getBoolean("threading"); DB db = DB.getInstance(context); try {