fix #251, properly handle exporting notes on SD cards

This commit is contained in:
tibbi 2018-12-27 10:33:23 +01:00
parent 622778e882
commit 30fcf9d0f4

View File

@ -536,7 +536,7 @@ class MainActivity : SimpleActivity() {
if (needsStupidWritePermissions(path)) {
handleSAFDialog(path) {
var document = getDocumentFile(path) ?: return@handleSAFDialog
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
if (!getDoesFilePathExist(path)) {
document = document.createFile("", path.getFilenameFromPath())!!
}