mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Prevent crash
This commit is contained in:
@@ -15,6 +15,9 @@ public class SwipeListener implements View.OnTouchListener {
|
||||
|
||||
@Override
|
||||
public boolean onFling(MotionEvent me1, MotionEvent me2, float vx, float vy) {
|
||||
if (me1 == null || me2 == null)
|
||||
return false;
|
||||
|
||||
boolean consumed = false;
|
||||
float dx = me2.getX() - me1.getX();
|
||||
float dy = me2.getY() - me1.getY();
|
||||
|
||||
Reference in New Issue
Block a user