summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-03-22 19:15:39 -0500
committerTony <twickham@google.com>2019-03-27 19:45:04 -0500
commit101807d8e7169e3b9381e1708b4bd1097aad1bc0 (patch)
tree5db597eacc7062424da6f7a935b37c3ddfe28bcd /quickstep/src/com/android/launcher3/uioverrides/touchcontrollers
parente06fef45a43ea2e9ddc426850f12568c7105cdf2 (diff)
downloadandroid_packages_apps_Trebuchet-101807d8e7169e3b9381e1708b4bd1097aad1bc0.tar.gz
android_packages_apps_Trebuchet-101807d8e7169e3b9381e1708b4bd1097aad1bc0.tar.bz2
android_packages_apps_Trebuchet-101807d8e7169e3b9381e1708b4bd1097aad1bc0.zip
Fix SwipeDetector positive vs negative for HORIZONTAL direction
Previously left was considered positive and right considered negative. Now left and down are negative, and right and up are positive. For RTL, left is positive and right is negative. Change-Id: Ia31e8c687c8c2716fc632b2fe88aa8955b934bce
Diffstat (limited to 'quickstep/src/com/android/launcher3/uioverrides/touchcontrollers')
-rw-r--r--quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/LandscapeEdgeSwipeController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/LandscapeEdgeSwipeController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/LandscapeEdgeSwipeController.java
index 92e9ac719..0605953dc 100644
--- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/LandscapeEdgeSwipeController.java
+++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/LandscapeEdgeSwipeController.java
@@ -41,7 +41,7 @@ public class LandscapeEdgeSwipeController extends AbstractStateChangeTouchContro
@Override
protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) {
- boolean draggingFromNav = mLauncher.getDeviceProfile().isSeascape() != isDragTowardPositive;
+ boolean draggingFromNav = mLauncher.getDeviceProfile().isSeascape() == isDragTowardPositive;
return draggingFromNav ? OVERVIEW : NORMAL;
}