Prevent crash

pull/147/head
M66B 6 years ago
parent 1740b980a7
commit 8e3b64450e

@ -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();

Loading…
Cancel
Save