Commit 9db12a68 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

More blind fixes for SlidingMenu

parent f750fd5c
...@@ -780,11 +780,11 @@ public class CustomViewAbove extends ViewGroup { ...@@ -780,11 +780,11 @@ public class CustomViewAbove extends ViewGroup {
switch (action) { switch (action) {
case MotionEvent.ACTION_MOVE: case MotionEvent.ACTION_MOVE:
final int activePointerId = mActivePointerId; final int activePointerId = mActivePointerId;
if (activePointerId == INVALID_POINTER) if (activePointerId == INVALID_POINTER || activePointerId >= ev.getPointerCount())
break; break;
final int pointerIndex = MotionEventCompat.findPointerIndex(ev, activePointerId); final int pointerIndex = MotionEventCompat.findPointerIndex(ev, activePointerId);
if (pointerIndex==-1) { if (pointerIndex==-1 || activePointerId >= ev.getPointerCount()) {
mActivePointerId = INVALID_POINTER; mActivePointerId = INVALID_POINTER;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment