am 7df0b260: am 0295233e: am 0fd713ca: Merge "Exception in the touch explorer when dragging." into jb-mr1-dev

* commit '7df0b2600f79394e2a9412bb108b80bea41e2070':
  Exception in the touch explorer when dragging.
This commit is contained in:
Mike Cleron
2012-10-03 17:13:38 -07:00
committed by Android Git Automerger

View File

@@ -645,7 +645,9 @@ class TouchExplorer implements EventStreamTransformation {
// We are in dragging state so we have two pointers and another one
// goes down => delegate the three pointers to the view hierarchy
mCurrentState = STATE_DELEGATING;
sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
if (mDraggingPointerId != INVALID_POINTER_ID) {
sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
}
sendDownForAllActiveNotInjectedPointers(event, policyFlags);
} break;
case MotionEvent.ACTION_MOVE: {