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:
@ -445,12 +445,12 @@ class MainActivity : SimpleActivity() {
|
||||
exportNoteValueToFile(exportPath, currentNoteText, true) {
|
||||
if (syncFile) {
|
||||
mCurrentNote.path = exportPath
|
||||
dbHelper.updateNotePath(mCurrentNote)
|
||||
|
||||
if (mCurrentNote.getNoteStoredValue() == currentNoteText) {
|
||||
mCurrentNote.value = ""
|
||||
dbHelper.updateNoteValue(mCurrentNote)
|
||||
}
|
||||
|
||||
dbHelper.updateNote(mCurrentNote)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user