Merge "Fix a monkey crash"

This commit is contained in:
Michael Jurka
2011-07-14 13:12:02 -07:00
committed by Android (Google) Code Review
+3
View File
@@ -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);