Skip to content

Commit aed4b6f

Browse files
committed
Inconsistent events on transition from gesture detection to touch exploration.
1. The problem is that we have a gesture detection timeout after which we transition to touch exploration state. This handles the case where the user is using too high velocity while trying to touch explore. The delayed command that transitions from gesture detection state to touch exploration state was not firing an event for the end of gesture detection and begin of touch exploration before doing its main work to transition to touch exploring state. bug:7233819 Change-Id: I5c4855231aa3826dadbee324e74a3c9e52c96cd9
1 parent 5e9187a commit aed4b6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/java/com/android/server/accessibility/TouchExplorer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,11 @@ public void remove() {
13001300

13011301
@Override
13021302
public void run() {
1303+
// Announce the end of gesture recognition.
1304+
sendAccessibilityEvent(AccessibilityEvent.TYPE_GESTURE_DETECTION_END);
1305+
// Clearing puts is in touch exploration state with a finger already
1306+
// down, so announce the transition to exploration state.
1307+
sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START);
13031308
clear();
13041309
}
13051310
}

0 commit comments

Comments
 (0)