Fix NPE in ExtendedBottomSheetBehavior
This commit is contained in:
parent
8bd74d968d
commit
8f2067074a
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue