summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-04-15 22:10:43 -0700
committerJohn Hoford <hoford@google.com>2013-04-17 09:39:13 -0700
commitf8f28abe5efd4c3db7cf6ae8522107c44392b7c0 (patch)
tree6583a3c12da72c133b9190fa7f839b48bc6d49cb /src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
parent6fbc56c69961a2a527f114881df8476baff6ecde (diff)
downloadandroid_packages_apps_Snap-f8f28abe5efd4c3db7cf6ae8522107c44392b7c0.tar.gz
android_packages_apps_Snap-f8f28abe5efd4c3db7cf6ae8522107c44392b7c0.tar.bz2
android_packages_apps_Snap-f8f28abe5efd4c3db7cf6ae8522107c44392b7c0.zip
Support for save state in images
bug:8626775 Change-Id: I2a34a6027b23dab9c1802f672bfbf399cac0c4f7
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
index c256686fb..0747190fa 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
@@ -6,13 +6,14 @@ import com.android.gallery3d.R;
import com.android.gallery3d.filtershow.editors.ImageOnlyEditor;
public class ImageFilterNegative extends ImageFilter {
-
+ private static final String SERIALIZATION_NAME = "NEGATIVE";
public ImageFilterNegative() {
mName = "Negative";
}
public FilterRepresentation getDefaultRepresentation() {
FilterRepresentation representation = new FilterDirectRepresentation("Negative");
+ representation.setSerializationName(SERIALIZATION_NAME);
representation.setFilterClass(ImageFilterNegative.class);
representation.setTextId(R.string.negative);
representation.setButtonId(R.id.negativeButton);