commit | 37bbe39dc0d5f7f002a35bbfa0e22e08022b2267 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon Feb 26 11:36:13 2018 -0800 |
committer | Sunny Goyal <sunnygoyal@google.com> | Mon Feb 26 12:25:52 2018 -0800 |
tree | 482ff3f5c78fd2cc49a33e0c5713b81f84633c6f | |
parent | d814b1cdf2fb0459c56b55589b45f7996172a516 [diff] |
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
diff --git a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java index db50a00..353bd9c 100644 --- a/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java +++ b/quickstep/src/com/android/quickstep/OtherActivityTouchConsumer.java
@@ -157,7 +157,7 @@ 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