mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Finish what has been started on #1376: use Intent.ACTION_GET_CONTENT instead of Intent.ACTION_OPEN_DOCUMENT for other pickers
This commit is contained in:
parent
2b90f1395f
commit
0bb75eed1f
4 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ Improvements 🙌:
|
||||||
- Small optimisation of scrolling experience in timeline (#2114)
|
- Small optimisation of scrolling experience in timeline (#2114)
|
||||||
|
|
||||||
Bugfix 🐛:
|
Bugfix 🐛:
|
||||||
- Improve support for image selection with intent changes (#1376)
|
- Improve support for image/audio/video/file selection with intent changes (#1376)
|
||||||
- Fix Splash layout on small screens
|
- Fix Splash layout on small screens
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
|
|
|
@ -84,7 +84,7 @@ class AudioPicker(override val requestCode: Int) : Picker<MultiPickerAudioType>(
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = "audio/*"
|
type = "audio/*"
|
||||||
|
|
|
@ -64,7 +64,7 @@ class FilePicker(override val requestCode: Int) : Picker<MultiPickerFileType>(re
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = "*/*"
|
type = "*/*"
|
||||||
|
|
|
@ -93,7 +93,7 @@ class VideoPicker(override val requestCode: Int) : Picker<MultiPickerVideoType>(
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = "video/*"
|
type = "video/*"
|
||||||
|
|
Loading…
Reference in a new issue