Skip to content

Commit ea6fbc0

Browse files
Fixing gesture recognition configuration in TouchExplorer.
This fix adjusts the sensitivity of the gesture recognizer by eliminating gesture rotation in the recognition process. Bug:6697119 Change-Id: Ic767f513c05210b27e583338c4f0adcaa1c4c625
1 parent 1b36a68 commit ea6fbc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import android.gesture.GestureLibraries;
2222
import android.gesture.GestureLibrary;
2323
import android.gesture.GesturePoint;
24+
import android.gesture.GestureStore;
2425
import android.gesture.GestureStroke;
2526
import android.gesture.Prediction;
2627
import android.graphics.Rect;
@@ -220,7 +221,8 @@ public TouchExplorer(InputFilter inputFilter, Context context,
220221
mPerformLongPressDelayed = new PerformLongPressDelayed();
221222
mExitGestureDetectionModeDelayed = new ExitGestureDetectionModeDelayed();
222223
mGestureLibrary = GestureLibraries.fromRawResource(context, R.raw.accessibility_gestures);
223-
mGestureLibrary.setOrientationStyle(4);
224+
mGestureLibrary.setOrientationStyle(8);
225+
mGestureLibrary.setSequenceType(GestureStore.SEQUENCE_SENSITIVE);
224226
mGestureLibrary.load();
225227
mSendHoverEnterDelayed = new SendHoverDelayed(MotionEvent.ACTION_HOVER_ENTER, true);
226228
mSendHoverExitDelayed = new SendHoverDelayed(MotionEvent.ACTION_HOVER_EXIT, false);

0 commit comments

Comments
 (0)