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

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

Change-Id: Iecfb9a0424f59461a2d0ed33c0bda19f09022347
This commit is contained in:
Ryan Lin
2020-06-22 06:27:13 +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++) {