Merge pull request #6450 from cloudrac3r/fix-attach-gallery

Gallery picker can pick external images (not just videos)
This commit is contained in:
Benoit Marty 2022-07-04 09:44:50 +02:00 committed by GitHub
commit cadd5c050b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/6450.bugfix Normal file
View File

@ -0,0 +1 @@
Gallery picker can pick external images

View File

@ -49,7 +49,7 @@ class MediaPicker : Picker<MultiPickerBaseMediaType>() {
return Intent(Intent.ACTION_GET_CONTENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, !single)
type = "video/*, image/*"
type = "*/*"
val mimeTypes = arrayOf("image/*", "video/*")
putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes)
}