Skip to content

Commit bd9e629

Browse files
maskaravivekmisaochan
authored andcommitted
Use get content intent instead of pick (commons-app#2407)
1 parent 8c12cc4 commit bd9e629

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/fr/free/nrw/commons/filepicker/FilePicker.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ public static boolean willHandleActivityResult(int requestCode, int resultCode,
368368
}
369369

370370
private static Intent plainGalleryPickerIntent() {
371-
return new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
371+
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
372+
intent.setType("image/*");
373+
return intent;
372374
}
373375

374376
public static boolean canDeviceHandleGallery(@NonNull Context context) {

0 commit comments

Comments
 (0)