From 37bbe39dc0d5f7f002a35bbfa0e22e08022b2267 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 26 Feb 2018 11:36:13 -0800 Subject: [PATCH] Using window touch slop for gesture instead of normal touch slop This would prevent intercepting taps on the home button Bug: 73188263 Change-Id: Ic0085a9109ee9045da56c48a86a21cc023e57748 --- .../src/com/android/quickstep/OtherActivityTouchConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java index db50a0068b..353bd9c24a 100644 --- a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java +++ b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java @@ -157,7 +157,7 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC mActivePointerId = ev.getPointerId(0); mDownPos.set(ev.getX(), ev.getY()); mLastPos.set(mDownPos); - mTouchSlop = ViewConfiguration.get(this).getScaledTouchSlop(); + mTouchSlop = ViewConfiguration.get(this).getScaledPagingTouchSlop(); mTouchThresholdCrossed = false; // Start the window animation on down to give more time for launcher to draw if the