Merge "Fix incorrect logic in multi-finger multi-tap and hold." into sc-dev

This commit is contained in:
Ameer Armaly
2021-02-03 18:04:48 +00:00
committed by Android (Google) Code Review

View File

@@ -44,7 +44,7 @@ class MultiFingerMultiTapAndHold extends MultiFingerMultiTap {
@Override
protected void onUp(MotionEvent event, MotionEvent rawEvent, int policyFlags) {
if (mCompletedTapCount + 1 == mTargetFingerCount) {
if (mCompletedTapCount + 1 == mTargetTapCount) {
// Calling super.onUp would complete the multi-tap version of this.
cancelGesture(event, rawEvent, policyFlags);
} else {