From 8d9bc81d2cc72bcdd9017b9e8fe988948f5fe86f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 29 Nov 2024 08:33:58 +0100 Subject: [PATCH] Attempt to workaround swipe/long press Android bug --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 556b0c478b..697c9e872e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1197,6 +1197,8 @@ public class FragmentMessages extends FragmentBase public void onLongPress(@NonNull MotionEvent e) { if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) return; + if (swiping) + return; int x = Math.round(e.getX()); int y = Math.round(e.getY());