Skip to content

Commit 43d2118

Browse files
committed
1 parent 035fe7e commit 43d2118

File tree

1 file changed

+3
-1
lines changed
  • lib/src/main/java/com/soundcloud/android/crop

1 file changed

+3
-1
lines changed

lib/src/main/java/com/soundcloud/android/crop/Crop.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public Crop withMaxSize(int width, int height) {
9696

9797
/**
9898
* Set how the image will be scaled when providing {@link Extra#MAX_X} and {@link Extra#MAX_Y} with the {@link #withMaxSize(int, int)}
99+
*
99100
* @param type
100101
* @return
101102
*/
@@ -106,6 +107,7 @@ public Crop withScaleMethod(ScaleMethod type) {
106107

107108
/**
108109
* Set whether to save the result as a PNG or not. Helpful to preserve alpha.
110+
*
109111
* @param asPng whether to save the result as a PNG or not
110112
*/
111113
public Crop asPng(boolean asPng) {
@@ -280,7 +282,7 @@ public static void pickImage(Context context, android.support.v4.app.Fragment fr
280282
}
281283

282284
private static Intent getImagePicker() {
283-
return new Intent(Intent.ACTION_GET_CONTENT).setType("image/*");
285+
return new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI).setType("image/*");
284286
}
285287

286288
private static void showImagePickerError(Context context) {

0 commit comments

Comments
 (0)