Merge pull request #1376 from dkanada/patch-1

Fix gallery intent for certain apps
This commit is contained in:
Benoit Marty 2020-09-29 16:29:21 +02:00 committed by GitHub
commit 2b90f1395f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Improvements 🙌:
- Small optimisation of scrolling experience in timeline (#2114)
Bugfix 🐛:
- Improve support for image selection with intent changes (#1376)
- Fix Splash layout on small screens
Translations 🗣:

View File

@ -82,7 +82,7 @@ class ImagePicker(override val requestCode: Int) : Picker<MultiPickerImageType>(
}
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/*"