mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-01-23 10:49:57 +01:00
fix #251, properly handle exporting notes on SD cards
This commit is contained in:
parent
622778e882
commit
30fcf9d0f4
@ -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())!!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user