diff options
| author | Wu-cheng Li <wuchengli@google.com> | 2012-08-13 22:02:40 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-13 22:02:41 -0700 |
| commit | cac6ef162e2cd25df1bbd03c4930fd8110b31724 (patch) | |
| tree | dfc7ab58d077f2e44b2e0a7168bcb4198299ce5a /src | |
| parent | 9b274a593d85d1ad022a603b6a8cf437ca453624 (diff) | |
| parent | 37ba3d7b5953decbb7cc21f74cd61ceed12b199a (diff) | |
| download | android_packages_apps_Gallery2-cac6ef162e2cd25df1bbd03c4930fd8110b31724.tar.gz android_packages_apps_Gallery2-cac6ef162e2cd25df1bbd03c4930fd8110b31724.tar.bz2 android_packages_apps_Gallery2-cac6ef162e2cd25df1bbd03c4930fd8110b31724.zip | |
Merge "Make a copy of MotionEvent in MotionEventHelper.transform." into gb-ub-photos-arches
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/gallery3d/util/MotionEventHelper.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/util/MotionEventHelper.java b/src/com/android/gallery3d/util/MotionEventHelper.java index 1c9d06244..715f7fa69 100644 --- a/src/com/android/gallery3d/util/MotionEventHelper.java +++ b/src/com/android/gallery3d/util/MotionEventHelper.java @@ -38,8 +38,9 @@ public final class MotionEventHelper { @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB) private static MotionEvent transformEventNew(MotionEvent e, Matrix m) { - e.transform(m); - return e; + MotionEvent newEvent = MotionEvent.obtain(e); + newEvent.transform(m); + return newEvent; } // This is copied from Input.cpp in the android framework. |
