Merge "Fix Hard to detect multi-finger multi-tap" into rvc-dev am: d531e28506 am: 2478e17af0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11942158

Change-Id: I2feb47f8ea7c98fd428abb1a804b1c6c46c0d54a
This commit is contained in:
Ryan Lin
2020-06-22 06:14:40 +00:00
committed by Automerger Merge Worker

View File

@@ -67,8 +67,8 @@ class MultiFingerMultiTap extends GestureMatcher {
Preconditions.checkArgumentPositive(taps, "Tap count must greater than 0.");
mTargetTapCount = taps;
mTargetFingerCount = fingers;
mDoubleTapSlop = ViewConfiguration.get(context).getScaledDoubleTapSlop();
mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
mDoubleTapSlop = ViewConfiguration.get(context).getScaledDoubleTapSlop() * fingers;
mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop() * fingers;
mBases = new PointF[mTargetFingerCount];
for (int i = 0; i < mBases.length; i++) {