fix #1285, properly handle some image picker intents

This commit is contained in:
tibbi 2019-02-26 15:39:14 +01:00
parent ce4c4d93f4
commit fdcad15b6f
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
var resultUri: Uri? = null
if (mIsThirdPartyIntent) {
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)
}
resultData.extras?.containsKey(PICKED_PATHS) == true -> fillPickedPaths(resultData, resultIntent)