summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2012-12-27 16:16:31 -0800
committernicolasroard <nicolasroard@google.com>2012-12-27 16:16:31 -0800
commit18e71eb1589f839667207414e5f5cf95ba78a183 (patch)
tree1eb7dfae2d61b3c360b0e5787e9e8b7ba058dd63 /src/com
parentff6b23e655883f8f42bcf5c806f594512beaa322 (diff)
downloadandroid_packages_apps_Gallery2-18e71eb1589f839667207414e5f5cf95ba78a183.tar.gz
android_packages_apps_Gallery2-18e71eb1589f839667207414e5f5cf95ba78a183.tar.bz2
android_packages_apps_Gallery2-18e71eb1589f839667207414e5f5cf95ba78a183.zip
Fix crash when using red eyes correction
bug:7680079 Change-Id: Icc6728321f18d09de5676564a3640c4b414c6741
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index d91cfb6c1..475c4f153 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -70,6 +70,7 @@ import com.android.gallery3d.filtershow.filters.ImageFilterKMeans;
import com.android.gallery3d.filtershow.filters.ImageFilterNegative;
import com.android.gallery3d.filtershow.filters.ImageFilterParametricBorder;
import com.android.gallery3d.filtershow.filters.ImageFilterRS;
+import com.android.gallery3d.filtershow.filters.ImageFilterRedEye;
import com.android.gallery3d.filtershow.filters.ImageFilterSaturated;
import com.android.gallery3d.filtershow.filters.ImageFilterShadows;
import com.android.gallery3d.filtershow.filters.ImageFilterSharpen;
@@ -340,6 +341,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
mPanelController.addFilter(filters[i]);
listColors.addView(fView);
}
+ mPanelController.addFilter(new ImageFilterRedEye());
mPanelController.addView(findViewById(R.id.applyEffect));
mPanelController.addView(findViewById(R.id.pickCurvesChannel));