Merge "Fix a monkey crash"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f2253e1446
@@ -929,6 +929,9 @@ public abstract class PagedView extends ViewGroup {
|
||||
* of the down event.
|
||||
*/
|
||||
final int pointerIndex = ev.findPointerIndex(mActivePointerId);
|
||||
if (pointerIndex == -1) {
|
||||
return;
|
||||
}
|
||||
final float x = ev.getX(pointerIndex);
|
||||
final float y = ev.getY(pointerIndex);
|
||||
final int xDiff = (int) Math.abs(x - mLastMotionX);
|
||||
|
||||
Reference in New Issue
Block a user