diff options
author | ztenghui <ztenghui@google.com> | 2013-06-24 13:54:04 -0700 |
---|---|---|
committer | ztenghui <ztenghui@google.com> | 2013-06-27 14:49:06 -0700 |
commit | dfaf4c5b5b901dbbd4904fd86995b71f4acfd47c (patch) | |
tree | b23941db9af10ed2cb7091df68e0e5eaa631bc1b /src/com/android/gallery3d/filtershow/filters | |
parent | 83b16cf2b02773370e00d3659e201efff20d788d (diff) | |
download | android_packages_apps_Snap-dfaf4c5b5b901dbbd4904fd86995b71f4acfd47c.tar.gz android_packages_apps_Snap-dfaf4c5b5b901dbbd4904fd86995b71f4acfd47c.tar.bz2 android_packages_apps_Snap-dfaf4c5b5b901dbbd4904fd86995b71f4acfd47c.zip |
Save button now behaves correctly for filter changes.
Basically, save the original filter from the file's XMP.
Compare the current filter against original one to decide whether or not the
file has been modified and needed to be saved.
At the same time, make sure we don't save "None" filter in the ImagePreset.
bug:9468909
Change-Id: I5b86ab95556b6b010367c9577b02c0bb42ffb824
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java index 096bedac9..c046a6e7f 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java @@ -82,7 +82,9 @@ public class FilterRepresentation implements Cloneable { if (representation.mFilterClass == mFilterClass && representation.mName.equalsIgnoreCase(mName) && representation.mPriority == mPriority - && representation.mSupportsPartialRendering == mSupportsPartialRendering + // TODO: After we enable partial rendering, we can switch back + // to use member variable here. + && representation.supportsPartialRendering() == supportsPartialRendering() && representation.mTextId == mTextId && representation.mEditorId == mEditorId && representation.mButtonId == mButtonId |