Skip to content

Commit 30fcf9d

Browse files
committed
fix #251, properly handle exporting notes on SD cards
1 parent 622778e commit 30fcf9d

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/activities

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class MainActivity : SimpleActivity() {
536536

537537
if (needsStupidWritePermissions(path)) {
538538
handleSAFDialog(path) {
539-
var document = getDocumentFile(path) ?: return@handleSAFDialog
539+
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
540540
if (!getDoesFilePathExist(path)) {
541541
document = document.createFile("", path.getFilenameFromPath())!!
542542
}

0 commit comments

Comments
 (0)