summaryrefslogtreecommitdiffstats
path: root/src
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
commitc96c311aacb2ca7f9123244d3d2bb044e4a4b242 (patch)
tree54e30bcb90db2190578a64f2845a5c07b29ddf06 /src
parent33d614f5c2ba3526797286176c7898a32786486f (diff)
downloadandroid_packages_apps_Snap-c96c311aacb2ca7f9123244d3d2bb044e4a4b242.tar.gz
android_packages_apps_Snap-c96c311aacb2ca7f9123244d3d2bb044e4a4b242.tar.bz2
android_packages_apps_Snap-c96c311aacb2ca7f9123244d3d2bb044e4a4b242.zip
get redeye working again
Diffstat (limited to 'src')
-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);
}