diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt index 7ba06b53..234c7fd3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt @@ -87,7 +87,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener { currentMaxId++ } saveNote() - if (items.size == 1) { + if (items.size == it.size) { setupAdapter() } else { (view.checklist_list.adapter as? ChecklistAdapter)?.notifyDataSetChanged()