mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
fix #298, properly save checklist values at renaming
This commit is contained in:
@ -122,13 +122,15 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
||||
}
|
||||
}
|
||||
|
||||
note!!.value = Gson().toJson(items)
|
||||
note!!.value = getChecklistItems()
|
||||
context?.notesDB?.insertOrUpdate(note!!)
|
||||
context?.updateWidgets()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun getChecklistItems() = Gson().toJson(items)
|
||||
|
||||
override fun saveChecklist() {
|
||||
saveNote()
|
||||
}
|
||||
|
Reference in New Issue
Block a user