diff options
author | John Hoford <hoford@google.com> | 2013-02-12 13:42:19 -0800 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2013-02-12 13:43:29 -0800 |
commit | bd4c46989171b5171797e0dbf4b33a1914ffba49 (patch) | |
tree | 418368856e8e07bc2cae703bc9d6122fc8e7bca3 /src/com/android/gallery3d/filtershow/editors | |
parent | 1c00e97c214dc8c0a73f02b9faec53ce02d81b54 (diff) | |
download | android_packages_apps_Snap-bd4c46989171b5171797e0dbf4b33a1914ffba49.tar.gz android_packages_apps_Snap-bd4c46989171b5171797e0dbf4b33a1914ffba49.tar.bz2 android_packages_apps_Snap-bd4c46989171b5171797e0dbf4b33a1914ffba49.zip |
fix the draw clear bug
Change-Id: I1050c3e1ad1280480f35a03c9d29dc1cd44b515f
Diffstat (limited to 'src/com/android/gallery3d/filtershow/editors')
-rw-r--r-- | src/com/android/gallery3d/filtershow/editors/EditorDraw.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/editors/EditorDraw.java b/src/com/android/gallery3d/filtershow/editors/EditorDraw.java index 907d1083e..aa5ec61e8 100644 --- a/src/com/android/gallery3d/filtershow/editors/EditorDraw.java +++ b/src/com/android/gallery3d/filtershow/editors/EditorDraw.java @@ -121,8 +121,8 @@ public class EditorDraw extends Editor { ImageDraw idraw = (ImageDraw) mImageShow; idraw.setStyle(ImageFilterDraw.SIMPLE_STYLE); } else if (item.getItemId() == R.id.draw_menu_clear) { - FilterDrawRepresentation drawRep = (FilterDrawRepresentation) getLocalRepresentation(); - drawRep.clear(); + ImageDraw idraw = (ImageDraw) mImageShow; + idraw.resetParameter(); commitLocalRepresentation(); } mView.invalidate(); |