summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java')
-rw-r--r--src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java b/src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java
index 7fe6108c9..3789b39c9 100644
--- a/src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java
+++ b/src/com/android/gallery3d/photoeditor/filters/FisheyeFilter.java
@@ -16,9 +16,11 @@
package com.android.gallery3d.photoeditor.filters;
+import android.annotation.TargetApi;
import android.media.effect.Effect;
import android.media.effect.EffectFactory;
+import com.android.gallery3d.common.ApiHelper;
import com.android.gallery3d.photoeditor.Photo;
/**
@@ -29,6 +31,7 @@ public class FisheyeFilter extends AbstractScaleFilter {
public static final Creator<FisheyeFilter> CREATOR = creatorOf(FisheyeFilter.class);
@Override
+ @TargetApi(ApiHelper.VERSION_CODES.ICE_CREAM_SANDWICH)
public void process(Photo src, Photo dst) {
Effect effect = getEffect(EffectFactory.EFFECT_FISHEYE);
effect.setParameter("scale", scale);