From f52af437b23969d836356d1b717ef708fbba081a Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Fri, 10 Apr 2020 17:25:57 -0700 Subject: [PATCH] Fix bug where it is hard to swipe to work profile tab. Bug: 151739025 Change-Id: I1ba731b4c5ce3a8d88fb14cc4dea2e2410538e6f --- src/com/android/launcher3/PagedView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java index e36ae94648..7474613a18 100644 --- a/src/com/android/launcher3/PagedView.java +++ b/src/com/android/launcher3/PagedView.java @@ -917,7 +917,7 @@ public abstract class PagedView extends ViewGrou // Remember location of down touch mDownMotionX = x; mDownMotionY = y; - mLastMotion = mOrientationHandler.getPrimaryDirection(ev, 0); + mDownMotionPrimary = mLastMotion = mOrientationHandler.getPrimaryDirection(ev, 0); mLastMotionRemainder = 0; mTotalMotion = 0; mActivePointerId = ev.getPointerId(0);