summaryrefslogtreecommitdiff
path: root/services/accessibility
diff options
context:
space:
mode:
authorJacky Kao <jackykao@google.com>2020-11-09 13:40:04 +0800
committerJacky Kao <jackykao@google.com>2020-11-09 23:57:25 +0000
commit750b659bb279fd0b62b3ea55734252e2a409f106 (patch)
tree1e88c511dbb640a0e660a79496f060e45b3988a0 /services/accessibility
parent265a962d72605361ba3b674103fc2317e82d5e06 (diff)
Fix the focus not move to the place where the finger clicks
User does the triple tap operation, but the gesture detection becomes to doubleTapAndHold because the timing of the motion event. Then the long pressing data is created but not be cleared when the state returns to STATE_CLEAR. Adding the long pressing data reset to fix this issue. Bug: 162521649 and 163298552 Test: a11y CTS & unit tests Change-Id: I40d89ea958bee619c64799de591be96bf92efbfc Merged-In: I5fc23a14b0a4ae3c7c012cb4ed8dc924c00e7fe9
Diffstat (limited to 'services/accessibility')
-rw-r--r--services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java b/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java
index bfb59f43aa1d..71d2c2c5b8c5 100644
--- a/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java
+++ b/services/accessibility/java/com/android/server/accessibility/gestures/TouchExplorer.java
@@ -221,6 +221,8 @@ public class TouchExplorer extends BaseEventStreamTransformation
mSendTouchInteractionEndDelayed.cancel();
// Clear the gesture detector
mGestureDetector.clear();
+ // Clear the offset data by long pressing.
+ mDispatcher.clear();
// Go to initial state.
mState.clear();
mAms.onTouchInteractionEnd();