mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-06-11 10:09:29 -04:00
Merge pull request #43 from Aga-C/sorting-on-all-actions
Added sorting after renaming and checking/unchecking checklist item
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