mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
use one shared function for updating note title, value, path
This commit is contained in:
@ -179,7 +179,7 @@ class NoteFragment : androidx.fragment.app.Fragment() {
|
||||
|
||||
private fun saveNoteValue(note: Note) {
|
||||
if (note.path.isEmpty()) {
|
||||
db.updateNoteValue(note)
|
||||
db.updateNote(note)
|
||||
(activity as MainActivity).noteSavedSuccessfully(note.title)
|
||||
} else {
|
||||
val currentText = getCurrentNoteViewText()
|
||||
|
Reference in New Issue
Block a user