mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
fix #1285, properly handle some image picker intents
This commit is contained in:
parent
ce4c4d93f4
commit
fdcad15b6f
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
var resultUri: Uri? = null
|
var resultUri: Uri? = null
|
||||||
if (mIsThirdPartyIntent) {
|
if (mIsThirdPartyIntent) {
|
||||||
when {
|
when {
|
||||||
intent.extras?.containsKey(MediaStore.EXTRA_OUTPUT) == true -> {
|
intent.extras?.containsKey(MediaStore.EXTRA_OUTPUT) == true && intent.flags and Intent.FLAG_GRANT_WRITE_URI_PERMISSION != 0 -> {
|
||||||
resultUri = fillExtraOutput(resultData)
|
resultUri = fillExtraOutput(resultData)
|
||||||
}
|
}
|
||||||
resultData.extras?.containsKey(PICKED_PATHS) == true -> fillPickedPaths(resultData, resultIntent)
|
resultData.extras?.containsKey(PICKED_PATHS) == true -> fillPickedPaths(resultData, resultIntent)
|
||||||
|
|
Loading…
Reference in a new issue