mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 16:40:53 +01:00
Prevent crash
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user