mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-24 20:40:09 +01:00
fix a glitch at creating notes synced to files
This commit is contained in:
parent
4564c6a561
commit
8897c39f6d
@ -482,9 +482,10 @@ class MainActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun displayNewNoteDialog(value: String = "", title: String? = null) {
|
private fun displayNewNoteDialog(value: String = "", title: String? = null, path: String = "") {
|
||||||
NewNoteDialog(this, title) {
|
NewNoteDialog(this, title) {
|
||||||
it.value = value
|
it.value = value
|
||||||
|
it.path = path
|
||||||
addNewNote(it)
|
addNewNote(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -540,7 +541,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
} else {
|
} else {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
OpenFileDialog(this, it.path) {
|
OpenFileDialog(this, it.path) {
|
||||||
displayNewNoteDialog(it.value, title = it.title)
|
displayNewNoteDialog(it.value, title = it.title, it.path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user