diff options
author | nicolasroard <nicolasroard@google.com> | 2013-08-15 15:35:53 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-08-15 15:35:53 -0700 |
commit | 3cd6fc8e632e406628b5977ee47c191523552500 (patch) | |
tree | 5c0f228e1f81fec67a5f3c20dc7856d7419f5397 /src/com/android/gallery3d/filtershow/FilterShowActivity.java | |
parent | f904939a3613902d4a0cc06741a00377bb55d44b (diff) | |
download | android_packages_apps_Gallery2-3cd6fc8e632e406628b5977ee47c191523552500.tar.gz android_packages_apps_Gallery2-3cd6fc8e632e406628b5977ee47c191523552500.tar.bz2 android_packages_apps_Gallery2-3cd6fc8e632e406628b5977ee47c191523552500.zip |
Fix copies / undo manager issues in filters
Change-Id: Icc7671ccfe52a2519ad8f4833e746768ec97cff8
Diffstat (limited to 'src/com/android/gallery3d/filtershow/FilterShowActivity.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index d90dd61a3..61f7e683d 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -596,6 +596,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL ImagePreset copy = new ImagePreset(oldPreset); FilterRepresentation representation = copy.getRepresentation(filterRepresentation); if (representation == null) { + filterRepresentation = filterRepresentation.copy(); copy.addFilter(filterRepresentation); } else if (filterRepresentation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY) { representation.useParametersFrom(filterRepresentation); |