improve gallery intent for certain apps
This commit is contained in:
parent
f6c7f3eed1
commit
3442ebc1c3
|
@ -23,6 +23,7 @@ Bugfix 🐛:
|
||||||
- Can't handle ongoing call events in background (#1992)
|
- Can't handle ongoing call events in background (#1992)
|
||||||
- Crash / Attachment viewer: Cannot draw a recycled Bitmap #2034
|
- Crash / Attachment viewer: Cannot draw a recycled Bitmap #2034
|
||||||
- Login with Matrix-Id | Autodiscovery fails if identity server is invalid and Homeserver ok (#2027)
|
- Login with Matrix-Id | Autodiscovery fails if identity server is invalid and Homeserver ok (#2027)
|
||||||
|
- Improve support for image selection with intent changes (#1376)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -82,7 +82,7 @@ class ImagePicker(override val requestCode: Int) : Picker<MultiPickerImageType>(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun createIntent(): Intent {
|
override fun createIntent(): Intent {
|
||||||
return Intent(Intent.ACTION_OPEN_DOCUMENT).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 = "image/*"
|
type = "image/*"
|
||||||
|
|
Loading…
Reference in New Issue