Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[WEEX-494][Android] Fix pointerIndex out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
miomin authored and YorkShen committed Jul 19, 2018
1 parent f183fbe commit c3321a5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,14 @@ public int superGetCurrentItem() {

@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
return scrollable && super.onInterceptTouchEvent(ev);
try {
return scrollable && super.onInterceptTouchEvent(ev);
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (ArrayIndexOutOfBoundsException e) {
e.printStackTrace();
}
return false;
}

@Override
Expand Down

0 comments on commit c3321a5

Please sign in to comment.