We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 622778e commit 30fcf9dCopy full SHA for 30fcf9d
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt
@@ -536,7 +536,7 @@ class MainActivity : SimpleActivity() {
536
537
if (needsStupidWritePermissions(path)) {
538
handleSAFDialog(path) {
539
- var document = getDocumentFile(path) ?: return@handleSAFDialog
+ var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
540
if (!getDoesFilePathExist(path)) {
541
document = document.createFile("", path.getFilenameFromPath())!!
542
}
0 commit comments