diff options
author | John Hoford <hoford@google.com> | 2013-02-11 20:55:45 -0800 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2013-02-11 20:57:18 -0800 |
commit | 2d445b63f5d4d3204374a1955a4a679023362c96 (patch) | |
tree | f53a89f9adbfe19b5e9458c20914def253fb36fa /src/com/android/gallery3d/filtershow/editors | |
parent | 1d160fd11e594a7ae77ae09d9f561b02cc9030a0 (diff) | |
download | android_packages_apps_Snap-2d445b63f5d4d3204374a1955a4a679023362c96.tar.gz android_packages_apps_Snap-2d445b63f5d4d3204374a1955a4a679023362c96.tar.bz2 android_packages_apps_Snap-2d445b63f5d4d3204374a1955a4a679023362c96.zip |
fixes the draw and clean up the UI
Change-Id: Ia52dfc3ec407c307612dcfc91fb61a1fb89e32ec
Diffstat (limited to 'src/com/android/gallery3d/filtershow/editors')
-rw-r--r-- | src/com/android/gallery3d/filtershow/editors/EditorDraw.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/filtershow/editors/EditorDraw.java b/src/com/android/gallery3d/filtershow/editors/EditorDraw.java index ff4018501..128af8ec7 100644 --- a/src/com/android/gallery3d/filtershow/editors/EditorDraw.java +++ b/src/com/android/gallery3d/filtershow/editors/EditorDraw.java @@ -111,11 +111,12 @@ public class EditorDraw extends Editor { showColorGrid(item); } else if (item.getItemId() == R.id.draw_menu_size) { showSizeDialog(item); - } else if (item.getItemId() == R.id.draw_menu_style_brush) { + } else if (item.getItemId() == R.id.draw_menu_style_brush_marker) { ImageDraw idraw = (ImageDraw) mImageShow; - idraw.setStyle((byte) (idraw.getStyle() + 1)); - item.setIcon(idraw.getIcon(mContext)); - popupMenu.show(); + idraw.setStyle(ImageFilterDraw.BRUSH_STYLE_MARKER); + } else if (item.getItemId() == R.id.draw_menu_style_brush_spatter) { + ImageDraw idraw = (ImageDraw) mImageShow; + idraw.setStyle(ImageFilterDraw.BRUSH_STYLE_SPATTER); } else if (item.getItemId() == R.id.draw_menu_style_line) { ImageDraw idraw = (ImageDraw) mImageShow; idraw.setStyle(ImageFilterDraw.SIMPLE_STYLE); |