summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterVibrance.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/ImageFilterVibrance.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/ImageFilterVibrance.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterVibrance.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterVibrance.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterVibrance.java
index ac20205f0..a57af71df 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterVibrance.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterVibrance.java
@@ -27,11 +27,15 @@ public class ImageFilterVibrance extends SimpleImageFilter {
}
public FilterRepresentation getDefaultRepresentation() {
- FilterRepresentation representation = super.getDefaultRepresentation();
+ FilterBasicRepresentation representation =
+ (FilterBasicRepresentation) super.getDefaultRepresentation();
representation.setName("Vibrance");
representation.setFilterClass(ImageFilterVibrance.class);
representation.setTextId(R.string.vibrance);
representation.setButtonId(R.id.vibranceButton);
+ representation.setMinimum(-100);
+ representation.setMaximum(100);
+ representation.setDefaultValue(0);
return representation;
}