summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/Wallpaper.java
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2012-11-28 14:00:30 -0800
committerRuben Brunk <rubenbrunk@google.com>2012-12-06 11:09:27 -0800
commit6425413690fccb004b52f64b23bc7e3c9cd33e7e (patch)
tree83add395f80f58bdde8ddbd918ede6cf716f48e2 /src/com/android/gallery3d/app/Wallpaper.java
parentb6794369702f20871241e6bff5e6069f27c8d537 (diff)
downloadandroid_packages_apps_Snap-6425413690fccb004b52f64b23bc7e3c9cd33e7e.tar.gz
android_packages_apps_Snap-6425413690fccb004b52f64b23bc7e3c9cd33e7e.tar.bz2
android_packages_apps_Snap-6425413690fccb004b52f64b23bc7e3c9cd33e7e.zip
Added support for Crop extras. Wallpaper & Widget use editor crop.
Bug: 7561976 Bug: 7441237 Change-Id: I0d6644171177650568ed911fc63c0c7e104f8d8c
Diffstat (limited to 'src/com/android/gallery3d/app/Wallpaper.java')
-rw-r--r--src/com/android/gallery3d/app/Wallpaper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/Wallpaper.java b/src/com/android/gallery3d/app/Wallpaper.java
index 996d3f080..fce4bacca 100644
--- a/src/com/android/gallery3d/app/Wallpaper.java
+++ b/src/com/android/gallery3d/app/Wallpaper.java
@@ -26,6 +26,7 @@ import android.os.Bundle;
import android.view.Display;
import com.android.gallery3d.common.ApiHelper;
+import com.android.gallery3d.filtershow.FilterShowActivity;
/**
* Wallpaper picker for the gallery application. This just redirects to the
@@ -98,7 +99,7 @@ public class Wallpaper extends Activity {
Point size = getDefaultDisplaySize(new Point());
float spotlightX = (float) size.x / width;
float spotlightY = (float) size.y / height;
- Intent request = new Intent(CropImage.ACTION_CROP)
+ Intent request = new Intent(FilterShowActivity.CROP_ACTION)
.setDataAndType(mPickedItem, IMAGE_TYPE)
.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT)
.putExtra(CropImage.KEY_OUTPUT_X, width)