mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-23 12:00:15 +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) {
|
||||
it.value = value
|
||||
it.path = path
|
||||
addNewNote(it)
|
||||
}
|
||||
}
|
||||
@ -540,7 +541,7 @@ class MainActivity : SimpleActivity() {
|
||||
} else {
|
||||
runOnUiThread {
|
||||
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