summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-02-12 16:59:13 -0800
committerJohn Hoford <hoford@google.com>2013-02-12 17:01:49 -0800
commit1335f1395bdc518cbb6dd13f2faabdd4631a0253 (patch)
treede6ce03edea22069aa0aa660c3b1e55129a2d83f /src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java
parentec0610102caf5353c07c8b271763d2509db474ee (diff)
downloadandroid_packages_apps_Snap-1335f1395bdc518cbb6dd13f2faabdd4631a0253.tar.gz
android_packages_apps_Snap-1335f1395bdc518cbb6dd13f2faabdd4631a0253.tar.bz2
android_packages_apps_Snap-1335f1395bdc518cbb6dd13f2faabdd4631a0253.zip
fix ranges for various filters
Change-Id: I6790b06c5c4094c442ce19cb2ed7ddb6a4152f3a
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java
index 36da68b7b..2f94e3d17 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterContrast.java
@@ -27,11 +27,16 @@ public class ImageFilterContrast extends SimpleImageFilter {
}
public FilterRepresentation getDefaultRepresentation() {
- FilterRepresentation representation = super.getDefaultRepresentation();
+ FilterBasicRepresentation representation =
+ (FilterBasicRepresentation) super.getDefaultRepresentation();
representation.setName("Contrast");
representation.setFilterClass(ImageFilterContrast.class);
representation.setTextId(R.string.contrast);
representation.setButtonId(R.id.contrastButton);
+
+ representation.setMinimum(-100);
+ representation.setMaximum(100);
+ representation.setDefaultValue(0);
return representation;
}