diff --git a/retroshare-qml-app/src/android/src/org/retroshare/android/qml_app/RetroShareQmlActivity.java b/retroshare-qml-app/src/android/src/org/retroshare/android/qml_app/RetroShareQmlActivity.java index d61b524d1..365778142 100644 --- a/retroshare-qml-app/src/android/src/org/retroshare/android/qml_app/RetroShareQmlActivity.java +++ b/retroshare-qml-app/src/android/src/org/retroshare/android/qml_app/RetroShareQmlActivity.java @@ -169,7 +169,6 @@ public class RetroShareQmlActivity extends QtActivity .getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); String result = cursor.getString(column_index); - cursor.close(); return result; } diff --git a/retroshare-qml-app/src/components/CustomFileChooser.qml b/retroshare-qml-app/src/components/CustomFileChooser.qml index 4d054351f..e7451dee5 100644 --- a/retroshare-qml-app/src/components/CustomFileChooser.qml +++ b/retroshare-qml-app/src/components/CustomFileChooser.qml @@ -44,7 +44,7 @@ Item function androidResult (uri) { console.log("QML Android image uri found" , uri) - resultFile = uriToFilePath (uri) + resultFile = normalizeUriToFilePath (uri) mainWindow.delUriHandler("media", androidResult) }