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
This commit is contained in:
Sunny Goyal
2018-02-26 11:36:13 -08:00
parent d814b1cdf2
commit 37bbe39dc0

View File

@@ -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