summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
index e69fe3542..14307c37d 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
@@ -13,33 +13,13 @@ public class ImageFilterNegative extends ImageFilter {
public FilterRepresentation getDefaultRepresentation() {
FilterRepresentation representation = new FilterDirectRepresentation("Negative");
representation.setFilterClass(ImageFilterNegative.class);
+ representation.setTextId(R.string.negative);
+ representation.setButtonId(R.id.negativeButton);
+ representation.setShowEditingControls(false);
+ representation.setShowParameterValue(false);
return representation;
}
- public boolean hasDefaultRepresentation() {
- return true;
- }
-
- @Override
- public int getButtonId() {
- return R.id.negativeButton;
- }
-
- @Override
- public int getTextId() {
- return R.string.negative;
- }
-
- @Override
- public boolean showEditingControls() {
- return false;
- }
-
- @Override
- public boolean showParameterValue() {
- return false;
- }
-
native protected void nativeApplyFilter(Bitmap bitmap, int w, int h);
@Override