mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-02 23:27:33 +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)) {
|
if (needsStupidWritePermissions(path)) {
|
||||||
handleSAFDialog(path) {
|
handleSAFDialog(path) {
|
||||||
var document = getDocumentFile(path) ?: return@handleSAFDialog
|
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
|
||||||
if (!getDoesFilePathExist(path)) {
|
if (!getDoesFilePathExist(path)) {
|
||||||
document = document.createFile("", path.getFilenameFromPath())!!
|
document = document.createFile("", path.getFilenameFromPath())!!
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user