diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2012-12-05 22:07:12 -0800 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2012-12-06 12:25:39 -0800 |
commit | 795776f67fe5bca902b09c01edec630879263341 (patch) | |
tree | d9222c4ad737f3f43a63f2d877fb9095de965cc5 /src/com/android/gallery3d/app/Wallpaper.java | |
parent | 6416dd59687768d4152d5d954dd0e8c3617b9d97 (diff) | |
download | android_packages_apps_Gallery2-795776f67fe5bca902b09c01edec630879263341.tar.gz android_packages_apps_Gallery2-795776f67fe5bca902b09c01edec630879263341.tar.bz2 android_packages_apps_Gallery2-795776f67fe5bca902b09c01edec630879263341.zip |
Removed old crop.
Bug: 7441237
Change-Id: I29801f798a1d1ad3af81a82950edbb8a72ccae82
Diffstat (limited to 'src/com/android/gallery3d/app/Wallpaper.java')
-rw-r--r-- | src/com/android/gallery3d/app/Wallpaper.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/com/android/gallery3d/app/Wallpaper.java b/src/com/android/gallery3d/app/Wallpaper.java index fce4bacca..1bbe8d2c6 100644 --- a/src/com/android/gallery3d/app/Wallpaper.java +++ b/src/com/android/gallery3d/app/Wallpaper.java @@ -27,6 +27,7 @@ import android.view.Display; import com.android.gallery3d.common.ApiHelper; import com.android.gallery3d.filtershow.FilterShowActivity; +import com.android.gallery3d.filtershow.CropExtras; /** * Wallpaper picker for the gallery application. This just redirects to the @@ -102,16 +103,15 @@ public class Wallpaper extends Activity { Intent request = new Intent(FilterShowActivity.CROP_ACTION) .setDataAndType(mPickedItem, IMAGE_TYPE) .addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT) - .putExtra(CropImage.KEY_OUTPUT_X, width) - .putExtra(CropImage.KEY_OUTPUT_Y, height) - .putExtra(CropImage.KEY_ASPECT_X, width) - .putExtra(CropImage.KEY_ASPECT_Y, height) - .putExtra(CropImage.KEY_SPOTLIGHT_X, spotlightX) - .putExtra(CropImage.KEY_SPOTLIGHT_Y, spotlightY) - .putExtra(CropImage.KEY_SCALE, true) - .putExtra(CropImage.KEY_SCALE_UP_IF_NEEDED, true) - .putExtra(CropImage.KEY_NO_FACE_DETECTION, true) - .putExtra(CropImage.KEY_SET_AS_WALLPAPER, true); + .putExtra(CropExtras.KEY_OUTPUT_X, width) + .putExtra(CropExtras.KEY_OUTPUT_Y, height) + .putExtra(CropExtras.KEY_ASPECT_X, width) + .putExtra(CropExtras.KEY_ASPECT_Y, height) + .putExtra(CropExtras.KEY_SPOTLIGHT_X, spotlightX) + .putExtra(CropExtras.KEY_SPOTLIGHT_Y, spotlightY) + .putExtra(CropExtras.KEY_SCALE, true) + .putExtra(CropExtras.KEY_SCALE_UP_IF_NEEDED, true) + .putExtra(CropExtras.KEY_SET_AS_WALLPAPER, true); startActivity(request); finish(); } |