From 3442ebc1c32a85d5b055a235b78d8d18d70797ec Mon Sep 17 00:00:00 2001 From: dkanada Date: Wed, 26 Aug 2020 12:47:04 +0900 Subject: [PATCH] improve gallery intent for certain apps --- CHANGES.md | 1 + .../src/main/java/im/vector/lib/multipicker/ImagePicker.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index db98189499..d2026678e7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,6 +23,7 @@ Bugfix 🐛: - Can't handle ongoing call events in background (#1992) - Crash / Attachment viewer: Cannot draw a recycled Bitmap #2034 - 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 🗣: - diff --git a/multipicker/src/main/java/im/vector/lib/multipicker/ImagePicker.kt b/multipicker/src/main/java/im/vector/lib/multipicker/ImagePicker.kt index 39bd0c27cc..ec87e027f9 100644 --- a/multipicker/src/main/java/im/vector/lib/multipicker/ImagePicker.kt +++ b/multipicker/src/main/java/im/vector/lib/multipicker/ImagePicker.kt @@ -82,7 +82,7 @@ class ImagePicker(override val requestCode: Int) : Picker( } override fun createIntent(): Intent { - return Intent(Intent.ACTION_OPEN_DOCUMENT).apply { + return Intent(Intent.ACTION_GET_CONTENT).apply { addCategory(Intent.CATEGORY_OPENABLE) putExtra(Intent.EXTRA_ALLOW_MULTIPLE, !single) type = "image/*"