Prevent crash

pull/147/head
M66B 6 years ago
parent 3edb452c91
commit 7937aa1910

@ -21,6 +21,17 @@ public class FixedRecyclerView extends RecyclerView {
super(context, attrs, defStyle); super(context, attrs, defStyle);
} }
@Override
public boolean onTouchEvent(MotionEvent e) {
try {
return super.onTouchEvent(e);
} catch (IllegalStateException ex) {
// Range start point not set
Log.w(ex);
return false;
}
}
@Override @Override
public boolean onInterceptTouchEvent(MotionEvent e) { public boolean onInterceptTouchEvent(MotionEvent e) {
try { try {

Loading…
Cancel
Save