mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
fix #251, properly handle exporting notes on SD cards
This commit is contained in:
@ -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())!!
|
||||
}
|
||||
|
Reference in New Issue
Block a user