fix #298, properly save checklist values at renaming

This commit is contained in:
tibbi
2019-10-28 11:31:36 +01:00
parent 2667cc4d64
commit bbc14d4aae
3 changed files with 11 additions and 2 deletions

View File

@ -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()
}