Skip to content

Commit

Permalink
Fix NPE caused by support library update
Browse files Browse the repository at this point in the history
  • Loading branch information
eligijusTrafi committed Jan 3, 2018
1 parent 3f1a72a commit 83e4bcb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ public boolean onTouchEvent(CoordinatorLayout parent, V child, MotionEvent event
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();
Expand Down

0 comments on commit 83e4bcb

Please sign in to comment.