Skip to content

Commit

Permalink
Fixed r0adkll#12
Browse files Browse the repository at this point in the history
  • Loading branch information
r0adkll committed Jun 18, 2015
1 parent 63a3e14 commit 62e4b1f
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,14 @@ public void run() {

@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
boolean interceptForDrag = mDragHelper.shouldInterceptTouchEvent(ev);
boolean interceptForDrag;

// Fix for pull request #13 and issue #12
try {
interceptForDrag = mDragHelper.shouldInterceptTouchEvent(ev);
}catch (Exception e){
interceptForDrag = false;
}
return interceptForDrag && !mIsLocked;
}

Expand Down

0 comments on commit 62e4b1f

Please sign in to comment.