Gallery picker can pick external images
This commit is contained in:
parent
93b7e1094c
commit
b8734a23a9
|
@ -0,0 +1 @@
|
||||||
|
Gallery picker can pick external images
|
|
@ -49,7 +49,7 @@ class MediaPicker : Picker<MultiPickerBaseMediaType>() {
|
||||||
return Intent(Intent.ACTION_GET_CONTENT).apply {
|
return Intent(Intent.ACTION_GET_CONTENT).apply {
|
||||||
addCategory(Intent.CATEGORY_OPENABLE)
|
addCategory(Intent.CATEGORY_OPENABLE)
|
||||||
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, !single)
|
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, !single)
|
||||||
type = "video/*, image/*"
|
type = "*/*"
|
||||||
val mimeTypes = arrayOf("image/*", "video/*")
|
val mimeTypes = arrayOf("image/*", "video/*")
|
||||||
putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes)
|
putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue