diff options
| author | John Hoford <hoford@google.com> | 2013-04-03 10:58:40 -0700 |
|---|---|---|
| committer | John Hoford <hoford@google.com> | 2013-04-03 11:00:25 -0700 |
| commit | 8ce4df0105e645aed8503c3f03c98c208621911d (patch) | |
| tree | ac55dd59722844bd4a8870206b417cff74fa01fe | |
| parent | 2538c992dc70b3eda7487ef68dba0390b2f337d7 (diff) | |
| download | android_packages_apps_Gallery2-8ce4df0105e645aed8503c3f03c98c208621911d.tar.gz android_packages_apps_Gallery2-8ce4df0105e645aed8503c3f03c98c208621911d.tar.bz2 android_packages_apps_Gallery2-8ce4df0105e645aed8503c3f03c98c208621911d.zip | |
fix touch action in draw
Change-Id: I8c1e040a795186c47c8319441ed1c371497a5f6d
| -rw-r--r-- | src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java b/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java index 6c3417ad3..8fcc028af 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java @@ -83,8 +83,8 @@ public class ImageDraw extends ImageShow { float[] mTmpPoint = new float[2]; // so we do not malloc @Override public boolean onTouchEvent(MotionEvent event) { - boolean ret = super.onTouchEvent(event); if (event.getPointerCount() > 1) { + boolean ret = super.onTouchEvent(event); if (mFRep.getCurrentDrawing() != null) { mFRep.clearCurrentSection(); mEditorDraw.commitLocalRepresentation(); @@ -93,7 +93,7 @@ public class ImageDraw extends ImageShow { } if (event.getAction() != MotionEvent.ACTION_DOWN) { if (mFRep.getCurrentDrawing() == null) { - return ret; + return super.onTouchEvent(event); } } |
