diff --git a/services/java/com/android/server/accessibility/TouchExplorer.java b/services/java/com/android/server/accessibility/TouchExplorer.java index 3c6b4165821c7..41cf9a6700af0 100644 --- a/services/java/com/android/server/accessibility/TouchExplorer.java +++ b/services/java/com/android/server/accessibility/TouchExplorer.java @@ -487,8 +487,16 @@ public class TouchExplorer implements Explorer { } } break; case MotionEvent.ACTION_POINTER_UP: { - // Send an event to the end of the drag gesture. - sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags); + final int activePointerCount = mPointerTracker.getActivePointerCount(); + switch (activePointerCount) { + case 1: { + // Send an event to the end of the drag gesture. + sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags); + } break; + default: { + mCurrentState = STATE_TOUCH_EXPLORING; + } + } } break; case MotionEvent.ACTION_UP: { mCurrentState = STATE_TOUCH_EXPLORING;