Skip to content

Commit d0d3a85

Browse files
Charles ChenAndroid (Google) Code Review
authored andcommitted
Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev
2 parents 0fa4d30 + ea6fbc0 commit d0d3a85

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)