From 7b4ed055046bda3616461a0ae35dfdbbf5690dc1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 21 Mar 2020 11:56:11 +0100 Subject: [PATCH] Fixed volume navigation --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 7aaa17e6f9..a54a1d7886 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -4440,9 +4440,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. switch (event.getKeyCode()) { case KeyEvent.KEYCODE_VOLUME_UP: - return (!up || onNext(context)); + return onNext(context); case KeyEvent.KEYCODE_VOLUME_DOWN: - return (!up || onPrevious(context)); + return onPrevious(context); case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_NUMPAD_ENTER: return (!up || onViewThread(context));