mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-03-03 14:06:21 -05:00
Added sorting after renaming and checking/unchecking checklist item (#40)
This commit is contained in:
@@ -116,9 +116,11 @@ class ChecklistAdapter(
|
||||
RenameChecklistItemDialog(activity, item.title) {
|
||||
val position = getSelectedItemPositions().first()
|
||||
item.title = it
|
||||
listener?.saveChecklist()
|
||||
notifyItemChanged(position)
|
||||
finishActMode()
|
||||
listener?.saveChecklist {
|
||||
listener.refreshItems()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -185,6 +185,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
||||
|
||||
saveNote(items.indexOfFirst { it.id == clickedNote.id })
|
||||
context?.updateWidgets()
|
||||
refreshItems()
|
||||
}.apply {
|
||||
binding.checklistList.adapter = this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user