summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-02-13 15:52:31 -0800
committerJohn Hoford <hoford@google.com>2013-02-13 17:38:32 -0800
commit498d78073c24f25055a2dc4943cdd0a42f85702c (patch)
tree7b771875ad41e351d94487d3d9c7ffc767f3c1af /src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
parent147af26e86b7fa8f2d195651e3786c0102346702 (diff)
downloadandroid_packages_apps_Snap-498d78073c24f25055a2dc4943cdd0a42f85702c.tar.gz
android_packages_apps_Snap-498d78073c24f25055a2dc4943cdd0a42f85702c.tar.bz2
android_packages_apps_Snap-498d78073c24f25055a2dc4943cdd0a42f85702c.zip
get redeye working again
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
index 329f5204e..7779211df 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterRedEyeRepresentation.java
@@ -65,6 +65,17 @@ public class FilterRedEyeRepresentation extends FilterRepresentation {
this.mCandidates.add(c);
}
+ @Override
+ public void useParametersFrom(FilterRepresentation a) {
+ if (a instanceof FilterRedEyeRepresentation) {
+ FilterRedEyeRepresentation representation = (FilterRedEyeRepresentation) a;
+ mCandidates.clear();
+ for (RedEyeCandidate redEyeCandidate : representation.mCandidates) {
+ mCandidates.add(redEyeCandidate);
+ }
+ }
+ }
+
public void removeCandidate(RedEyeCandidate c) {
this.mCandidates.remove(c);
}