Add more pointer validation check to ViewDragHelper. Adding isPointerDown checks before modifying mInitialMotionX and mLastMotionX arrays. clearMotionHistory gets called on ACTION_POINTER_UP so there is nothing to clear if we never got ACTION_POINTER_DOWN. Bug: 29561625 Change-Id: Ia40c4dfc0068839dbf71fa2f805bf84b69d22cfe