Fix a monkey crash

This commit is contained in:
Michael Jurka
2011-07-13 18:25:14 -07:00
parent 33f3703e6a
commit 2698db4df3
+3
View File
@@ -925,6 +925,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);