summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.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
commit4b1e6fbdf437b7a25fb3eb18a2ed43c9ab4eccc8 (patch)
treee8944decfc49fe60d3941c01adb5a27721551761 /src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java
parenta241341de88c982bc619d25f0455561075d177e8 (diff)
downloadandroid_packages_apps_Gallery2-4b1e6fbdf437b7a25fb3eb18a2ed43c9ab4eccc8.tar.gz
android_packages_apps_Gallery2-4b1e6fbdf437b7a25fb3eb18a2ed43c9ab4eccc8.tar.bz2
android_packages_apps_Gallery2-4b1e6fbdf437b7a25fb3eb18a2ed43c9ab4eccc8.zip
fix ranges for various filters
Change-Id: I6790b06c5c4094c442ce19cb2ed7ddb6a4152f3a
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java
index 8bb35f853..7a8df71af 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java
@@ -27,11 +27,15 @@ public class ImageFilterExposure extends SimpleImageFilter {
}
public FilterRepresentation getDefaultRepresentation() {
- FilterRepresentation representation = super.getDefaultRepresentation();
+ FilterBasicRepresentation representation =
+ (FilterBasicRepresentation) super.getDefaultRepresentation();
representation.setName("Exposure");
representation.setFilterClass(ImageFilterExposure.class);
representation.setTextId(R.string.exposure);
representation.setButtonId(R.id.exposureButton);
+ representation.setMinimum(-100);
+ representation.setMaximum(100);
+ representation.setDefaultValue(0);
return representation;
}