fix #1285, properly handle some image picker intents
This commit is contained in:
parent
ce4c4d93f4
commit
fdcad15b6f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue