Set correct authority to handle image choosed

This commit is contained in:
Angela Mazzurco 2017-07-12 15:43:07 +02:00
parent 2d9f062c27
commit 7698e74387

View File

@ -29,7 +29,7 @@ Item
if (Qt.platform.os === "android")
{
console.log("ImagePicker Android platform detected")
mainWindow.addUriHandler("media", androidResult)
mainWindow.addUriHandler("file", androidResult)
androidImagePicker.openPicker()
}
else
@ -40,7 +40,7 @@ Item
function androidResult (uri)
{
console.log("Android image uri found" , uri)
console.log("@@@@@@@@@ Android image uri found" , uri)
resultFile = uri
mainWindow.delUriHandler("media", androidResult)
}