summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-08-13 22:02:40 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-13 22:02:41 -0700
commita7c64453563b15d19b083ba546dce9f4aae42406 (patch)
treeb2b90ca7d323cacf9348bf1bb3b611f6d9fb37df /src
parent861fcb65a1f37d9d327585d6e1a5a0e395b60217 (diff)
parente89a4e7d2808b44b2da6827d13d6da6ce0998896 (diff)
downloadandroid_packages_apps_Snap-a7c64453563b15d19b083ba546dce9f4aae42406.tar.gz
android_packages_apps_Snap-a7c64453563b15d19b083ba546dce9f4aae42406.tar.bz2
android_packages_apps_Snap-a7c64453563b15d19b083ba546dce9f4aae42406.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.java5
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.