summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterVignette.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/ImageFilterVignette.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/ImageFilterVignette.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterVignette.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterVignette.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterVignette.java
index ac0fdee13..465d90bfd 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterVignette.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterVignette.java
@@ -30,12 +30,18 @@ public class ImageFilterVignette extends SimpleImageFilter {
}
public FilterRepresentation getDefaultRepresentation() {
- FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentation();
+ FilterBasicRepresentation representation =
+ (FilterBasicRepresentation) super.getDefaultRepresentation();
representation.setName("Vignette");
representation.setFilterClass(ImageFilterVignette.class);
representation.setPriority(FilterRepresentation.TYPE_VIGNETTE);
representation.setTextId(R.string.vignette);
representation.setButtonId(R.id.vignetteButton);
+
+ representation.setMinimum(-100);
+ representation.setMaximum(100);
+ representation.setDefaultValue(0);
+
return representation;
}