Fix NPE in ExtendedBottomSheetBehavior

This commit is contained in:
alex 2018-03-29 16:16:57 +03:00
parent 8bd74d968d
commit 8f2067074a

View file

@ -323,7 +323,9 @@ public class ExtendedBottomSheetBehavior<V extends View> extends CoordinatorLayo
if (mState == STATE_DRAGGING && action == MotionEvent.ACTION_DOWN) {
return true;
}
mViewDragHelper.processTouchEvent(event);
if (mViewDragHelper != null) {
mViewDragHelper.processTouchEvent(event);
}
// Record the velocity
if (action == MotionEvent.ACTION_DOWN) {
reset();