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

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

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