OSDN Git Service

Save button now behaves correctly for filter changes.
authorztenghui <ztenghui@google.com>
Mon, 24 Jun 2013 20:54:04 +0000 (13:54 -0700)
committerztenghui <ztenghui@google.com>
Thu, 27 Jun 2013 21:49:06 +0000 (14:49 -0700)
commitd2e9ea0ce1949e192e80ce806e702606694440ac
tree3b60b1de5cca1c48eae7410e3933377437f95dc0
parent5180e681e1b68eae403b2740c609792ca44f77ce
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
src/com/android/gallery3d/filtershow/FilterShowActivity.java
src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java
src/com/android/gallery3d/filtershow/imageshow/ImageShow.java
src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
src/com/android/gallery3d/filtershow/presets/ImagePreset.java