mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 09:33:14 +01:00
Merge pull request #6450 from cloudrac3r/fix-attach-gallery
Gallery picker can pick external images (not just videos)
This commit is contained in:
commit
cadd5c050b
1
changelog.d/6450.bugfix
Normal file
1
changelog.d/6450.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Gallery picker can pick external images
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user