From 347b5d527cc0cc40674989887aeb8fe126655e7d Mon Sep 17 00:00:00 2001 From: Kainalu Hagiwara Date: Tue, 28 Jul 2020 13:06:32 -0700 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/12861 - Swap order of tabs for tab switching gesture. --- .../org/mozilla/fenix/browser/ToolbarGestureHandler.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/browser/ToolbarGestureHandler.kt b/app/src/main/java/org/mozilla/fenix/browser/ToolbarGestureHandler.kt index 00508690d7..11fe97a654 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/ToolbarGestureHandler.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/ToolbarGestureHandler.kt @@ -180,14 +180,14 @@ class ToolbarGestureHandler( val sessions = sessionManager.sessionsOfType(currentSession.private) val index = when (gestureDirection) { GestureDirection.RIGHT_TO_LEFT -> if (isLtr) { - currentIndex + 1 - } else { currentIndex - 1 + } else { + currentIndex + 1 } GestureDirection.LEFT_TO_RIGHT -> if (isLtr) { - currentIndex - 1 - } else { currentIndex + 1 + } else { + currentIndex - 1 } }