mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Use get content intent instead of pick (#2407)
This commit is contained in:
parent
8c12cc48e0
commit
bd9e629647
1 changed files with 3 additions and 1 deletions
|
|
@ -368,7 +368,9 @@ public class FilePicker implements Constants {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Intent plainGalleryPickerIntent() {
|
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) {
|
public static boolean canDeviceHandleGallery(@NonNull Context context) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue