Loading services/java/com/android/server/accessibility/TouchExplorer.java +4 −10 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.gesture.GestureStore; import android.gesture.GestureStroke; import android.gesture.Prediction; import android.graphics.Rect; import android.os.Build; import android.os.Handler; import android.os.SystemClock; import android.util.Slog; Loading Loading @@ -687,16 +686,11 @@ class TouchExplorer implements EventStreamTransformation { } } break; case MotionEvent.ACTION_POINTER_UP: { final int activePointerCount = mReceivedPointerTracker.getActivePointerCount(); switch (activePointerCount) { case 1: { // Send an event to the end of the drag gesture. sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags); } break; default: { final int pointerId = event.getPointerId(event.getActionIndex()); if (mReceivedPointerTracker.isActiveOrWasLastActiveUpPointer(pointerId)) { sendUpForInjectedDownPointers(event, policyFlags); mCurrentState = STATE_TOUCH_EXPLORING; } } } break; case MotionEvent.ACTION_UP: { // Announce the end of a new touch interaction. Loading Loading
services/java/com/android/server/accessibility/TouchExplorer.java +4 −10 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.gesture.GestureStore; import android.gesture.GestureStroke; import android.gesture.Prediction; import android.graphics.Rect; import android.os.Build; import android.os.Handler; import android.os.SystemClock; import android.util.Slog; Loading Loading @@ -687,16 +686,11 @@ class TouchExplorer implements EventStreamTransformation { } } break; case MotionEvent.ACTION_POINTER_UP: { final int activePointerCount = mReceivedPointerTracker.getActivePointerCount(); switch (activePointerCount) { case 1: { // Send an event to the end of the drag gesture. sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags); } break; default: { final int pointerId = event.getPointerId(event.getActionIndex()); if (mReceivedPointerTracker.isActiveOrWasLastActiveUpPointer(pointerId)) { sendUpForInjectedDownPointers(event, policyFlags); mCurrentState = STATE_TOUCH_EXPLORING; } } } break; case MotionEvent.ACTION_UP: { // Announce the end of a new touch interaction. Loading