From 43d2118fb35556912d49aaf6eaed83b29fd6f786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Trakal?= Date: Tue, 28 Mar 2017 18:10:08 +0200 Subject: [PATCH] Fix https://github.com/jdamcd/android-crop/pull/163 --- lib/src/main/java/com/soundcloud/android/crop/Crop.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/main/java/com/soundcloud/android/crop/Crop.java b/lib/src/main/java/com/soundcloud/android/crop/Crop.java index 40df31ab..15800b08 100644 --- a/lib/src/main/java/com/soundcloud/android/crop/Crop.java +++ b/lib/src/main/java/com/soundcloud/android/crop/Crop.java @@ -96,6 +96,7 @@ public Crop withMaxSize(int width, int height) { /** * Set how the image will be scaled when providing {@link Extra#MAX_X} and {@link Extra#MAX_Y} with the {@link #withMaxSize(int, int)} + * * @param type * @return */ @@ -106,6 +107,7 @@ public Crop withScaleMethod(ScaleMethod type) { /** * Set whether to save the result as a PNG or not. Helpful to preserve alpha. + * * @param asPng whether to save the result as a PNG or not */ public Crop asPng(boolean asPng) { @@ -280,7 +282,7 @@ public static void pickImage(Context context, android.support.v4.app.Fragment fr } private static Intent getImagePicker() { - return new Intent(Intent.ACTION_GET_CONTENT).setType("image/*"); + return new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI).setType("image/*"); } private static void showImagePickerError(Context context) {