mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 19:08:12 +00:00
Merge pull request #246 from superandrew213/fix-android-multiple-mime-types
Fix Android multiple mime types
This commit is contained in:
commit
3751082818
@ -302,7 +302,9 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi
|
||||
if (cropping) {
|
||||
galleryIntent.setType("image/*");
|
||||
} else {
|
||||
galleryIntent.setType("image/*,video/*");
|
||||
String[] mimetypes = {"image/*", "video/*"};
|
||||
galleryIntent.setType("*/*");
|
||||
galleryIntent.putExtra(Intent.EXTRA_MIME_TYPES, mimetypes);
|
||||
}
|
||||
|
||||
galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple);
|
||||
|
Loading…
x
Reference in New Issue
Block a user