Merge "Fix bug where it is hard to swipe to work profile tab." into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2020-04-11 01:32:41 +00:00
commit 0c0a9ae366
1 file changed
+1 -1
+1 -1
View File
@@ -917,7 +917,7 @@ public abstract class PagedView<T extends View & PageIndicator> 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);