Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrakal committed Mar 28, 2017
1 parent 035fe7e commit 43d2118
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/main/java/com/soundcloud/android/crop/Crop.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 43d2118

Please sign in to comment.