diff options
author | Michael Jurka <mikejurka@google.com> | 2011-07-13 18:25:14 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-07-13 18:25:14 -0700 |
commit | 2698db4df3d2f9aa2a2c16af6760d63ba1ac354e (patch) | |
tree | 1682b11acf2a52e78c0b952973520b6a1c274997 /src | |
parent | 33f3703e6a85c2d5fa6ba5cf5c06e69b657c1c4e (diff) | |
download | packages_apps_trebuchet-2698db4df3d2f9aa2a2c16af6760d63ba1ac354e.zip packages_apps_trebuchet-2698db4df3d2f9aa2a2c16af6760d63ba1ac354e.tar.gz packages_apps_trebuchet-2698db4df3d2f9aa2a2c16af6760d63ba1ac354e.tar.bz2 |
Fix a monkey crash
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/PagedView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/PagedView.java b/src/com/android/launcher2/PagedView.java index 8c74c42..e5e7a20 100644 --- a/src/com/android/launcher2/PagedView.java +++ b/src/com/android/launcher2/PagedView.java @@ -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); |