Use get content intent instead of pick (#2407)

This commit is contained in:
Vivek Maskara 2019-02-04 14:36:19 +05:30 committed by Josephine Lim
parent 8c12cc48e0
commit bd9e629647

View file

@ -368,7 +368,9 @@ public class FilePicker implements Constants {
}
private static Intent plainGalleryPickerIntent() {
return new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
return intent;
}
public static boolean canDeviceHandleGallery(@NonNull Context context) {