From ae373655459c121d563fda537324d5599d2a329b Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 24 Oct 2018 18:16:29 +0000 Subject: [PATCH] Disable swipe when multiple selecting --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index be58b3de..c8f6d957 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -282,6 +282,9 @@ public class FragmentMessages extends FragmentEx { if (!prefs.getBoolean("swipe", true)) return 0; + if (selectionTracker != null && selectionTracker.hasSelection()) + return 0; + int pos = viewHolder.getAdapterPosition(); if (pos == RecyclerView.NO_POSITION) return 0;