summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-02-12 16:32:43 -0800
committernicolasroard <nicolasroard@google.com>2013-02-12 17:10:37 -0800
commit7caa8cc9073e5cdf195c73f1eb0fe06df1efe569 (patch)
tree0869d77fd367cb4aa19f4048861248f2b1e3d0be /src/com/android/gallery3d/filtershow/filters
parent1335f1395bdc518cbb6dd13f2faabdd4631a0253 (diff)
downloadandroid_packages_apps_Snap-7caa8cc9073e5cdf195c73f1eb0fe06df1efe569.tar.gz
android_packages_apps_Snap-7caa8cc9073e5cdf195c73f1eb0fe06df1efe569.tar.bz2
android_packages_apps_Snap-7caa8cc9073e5cdf195c73f1eb0fe06df1efe569.zip
Clean up red eye correction
Change-Id: I19a8006ed31767ae8e33388cc5b11b5c68d5ae2d
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java2
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
index 2667cc8e9..329f5204e 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
@@ -32,9 +32,9 @@ public class FilterRedEyeRepresentation extends FilterRepresentation {
super("RedEye");
setFilterClass(ImageFilterRedEye.class);
setPriority(FilterRepresentation.TYPE_NORMAL);
- setButtonId(R.id.redEyeButton);
setTextId(R.string.redeye);
setEditorId(EditorRedEye.ID);
+ setOverlayId(R.drawable.photoeditor_effect_redeye);
}
@Override
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
index 17e1427a6..5f5314946 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
@@ -35,10 +35,7 @@ public class ImageFilterRedEye extends ImageFilter {
@Override
public FilterRepresentation getDefaultRepresentation() {
- FilterRedEyeRepresentation representation = new FilterRedEyeRepresentation();
- representation.setOverlayId(R.drawable.photoeditor_effect_redeye);
-
- return representation;
+ return new FilterRedEyeRepresentation();
}
public boolean isNil() {