Fix incorrect logic in multi-finger multi-tap and hold.
Bug: 179168487 Test: atest AccessibilityGestureDetectorTest Change-Id: I8592dbe7684d8d763821da0b883b9a7d74e3ebae
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user