summaryrefslogtreecommitdiff
path: root/services/accessibility
diff options
context:
space:
mode:
authorAmeer Armaly <aarmaly@google.com>2020-05-20 13:54:23 -0700
committerAmeer Armaly <aarmaly@google.com>2020-05-20 14:48:52 -0700
commitb4eb89e468119e7fbedafb1a2f69c777bd9d50e4 (patch)
tree9abb36bb6217399168c3e470ecd5c8b2e9650fb1 /services/accessibility
parent962f676619d1bb905454b282975407c3209d7c58 (diff)
MultiFingerMultiTap: reset the expiration clock when fingers go up.
We were resetting the expiration clock every time a finger went down, but were not resetting it when fingers went up. As a result the user had a super narrow window to get all the fingers up before the gesture canceled. Bug: 156880174 Test: atest GestureManifoldTest Change-Id: I81dd9cd67729cfae38952d44295c3340c5426028 Change-Id: I1b6323ac413bcbd46fd9292fbb4cf7ebdf2b6246
Diffstat (limited to 'services/accessibility')
-rw-r--r--services/accessibility/java/com/android/server/accessibility/gestures/MultiFingerMultiTap.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/gestures/MultiFingerMultiTap.java b/services/accessibility/java/com/android/server/accessibility/gestures/MultiFingerMultiTap.java
index e5340f10dc4c..642a841257bf 100644
--- a/services/accessibility/java/com/android/server/accessibility/gestures/MultiFingerMultiTap.java
+++ b/services/accessibility/java/com/android/server/accessibility/gestures/MultiFingerMultiTap.java
@@ -197,6 +197,7 @@ class MultiFingerMultiTap extends GestureMatcher {
if (getState() == STATE_GESTURE_STARTED || getState() == STATE_CLEAR) {
// Needs more fingers lifted within the tap timeout
// after reaching the target number of fingers are down.
+ cancelAfterTapTimeout(event, rawEvent, policyFlags);
} else {
cancelGesture(event, rawEvent, policyFlags);
}