Skip to content

Commit a584c8d

Browse files
committed
properly remove the checklists placeholder at adding new items
1 parent 94d020e commit a584c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
8787
currentMaxId++
8888
}
8989
saveNote()
90-
if (items.size == 1) {
90+
if (items.size == it.size) {
9191
setupAdapter()
9292
} else {
9393
(view.checklist_list.adapter as? ChecklistAdapter)?.notifyDataSetChanged()

0 commit comments

Comments
 (0)