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);
}
@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
public boolean onInterceptTouchEvent(MotionEvent e) {
try {

Loading…
Cancel
Save