1
0
mirror of https://github.com/vector-im/element-android.git synced 2025-07-31 07:04:23 +03:00

Gallery picker can pick external images

This commit is contained in:
Cadence Ember
2022-07-04 16:40:14 +12:00
parent 93b7e1094c
commit b8734a23a9
2 changed files with 2 additions and 1 deletions

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)
}