summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2012-12-06 17:55:34 -0800
committernicolasroard <nicolasroard@google.com>2012-12-06 18:33:43 -0800
commite623dcde5ea8c572602fcbb470c439600e74b610 (patch)
tree2b171f1016b87c6fbc4236be974fc7f8e46dcf07 /src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java
parent4450409cc98730e9418013a186d0a79864bdc350 (diff)
downloadandroid_packages_apps_Snap-e623dcde5ea8c572602fcbb470c439600e74b610.tar.gz
android_packages_apps_Snap-e623dcde5ea8c572602fcbb470c439600e74b610.tar.bz2
android_packages_apps_Snap-e623dcde5ea8c572602fcbb470c439600e74b610.zip
Refactor filters to simplify their creation/addition
Bug:7688780 Change-Id: I9e1bb860dc9150bed4a255118654f2ca7f1ec3f0
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java
index effd89ebe..36bd62630 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterTinyPlanet.java
@@ -22,6 +22,7 @@ import android.graphics.RectF;
import com.adobe.xmp.XMPException;
import com.adobe.xmp.XMPMeta;
+import com.android.gallery3d.R;
import com.android.gallery3d.app.Log;
import com.android.gallery3d.filtershow.presets.ImagePreset;
@@ -59,6 +60,16 @@ public class ImageFilterTinyPlanet extends ImageFilter {
mAngle = 0;
}
+ @Override
+ public int getButtonId() {
+ return R.id.tinyplanetButton;
+ }
+
+ @Override
+ public int getTextId() {
+ return R.string.tinyplanet;
+ }
+
public void setAngle(float angle) {
mAngle = angle;
}