From ad9199df683a719f0fccff3f3d6824417f529e8c Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Oct 2019 11:57:37 +0200 Subject: [PATCH] Single finger swipe --- app/src/main/java/eu/faircode/email/SwipeListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/SwipeListener.java b/app/src/main/java/eu/faircode/email/SwipeListener.java index 5c3b9ac488..4dd07984aa 100644 --- a/app/src/main/java/eu/faircode/email/SwipeListener.java +++ b/app/src/main/java/eu/faircode/email/SwipeListener.java @@ -39,6 +39,8 @@ public class SwipeListener implements View.OnTouchListener { public boolean onFling(MotionEvent me1, MotionEvent me2, float vx, float vy) { if (me1 == null || me2 == null) return false; + if (me1.getPointerCount() > 1 || me2.getPointerCount() > 1) + return false; boolean consumed = false; int dx = Math.round(me2.getX() - me1.getX());