mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Guard against fling events that only have one motionevent defined
This commit is contained in:
parent
21aa687ee3
commit
23af9f3e6d
@ -1332,6 +1332,9 @@ public class MessageList
|
||||
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
|
||||
{
|
||||
|
||||
if (e2 == null || e1 == null)
|
||||
return true;
|
||||
|
||||
float deltaX = e2.getX() - e1.getX(),
|
||||
deltaY = e2.getY() - e1.getY();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user