Skip to content

Commit

Permalink
Refactor how image picker intent is created (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravirajn22 committed Feb 11, 2021
1 parent 8c0e66f commit ea64b3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/main/java/com/imagepicker/ImagePickerModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public void launchImageLibrary(final ReadableMap options, final Callback callbac
libraryIntent.setType("video/*");
} else {
requestCode = REQUEST_LAUNCH_IMAGE_LIBRARY;
libraryIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
libraryIntent = new Intent(Intent.ACTION_PICK);
libraryIntent.setType("image/*");
}

if (libraryIntent.resolveActivity(reactContext.getPackageManager()) == null) {
Expand Down

0 comments on commit ea64b3d

Please sign in to comment.