Merge "Fix for drag start event being incorrectly cached" into nyc-dev

This commit is contained in:
Yorke Lee
2016-03-12 00:04:47 +00:00
committed by Android (Google) Code Review

View File

@@ -1382,6 +1382,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
if (mIsInterestedInDrag) {
retval = true;
}
if (!retval) {
// Neither us nor any of our children are interested in this drag, so stop tracking
// the current drag event.
mCurrentDragStartEvent.recycle();
mCurrentDragStartEvent = null;
}
} break;
case DragEvent.ACTION_DRAG_ENDED: {