From 291520772fc83f356fca9806bc81d88d74ceb1cf Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 30 Jan 2019 19:46:41 +0000 Subject: [PATCH] Swap swipe left and right --- .../java/eu/faircode/email/FragmentMessages.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 380a12d0db..3fca1ace0e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -304,16 +304,16 @@ public class FragmentMessages extends FragmentBase { activity.setSwipeListener(new SwipeListener.ISwipeListener() { @Override public boolean onSwipeRight() { - if (previous != null) - navigate(previous); - return (previous != null); + if (next != null) + navigate(next); + return (next != null); } @Override public boolean onSwipeLeft() { - if (next != null) - navigate(next); - return (next != null); + if (previous != null) + navigate(previous); + return (previous != null); } });