mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-24 12:08:44 +02:00
refresh the checklist if the first item is added
This commit is contained in:
parent
334056852a
commit
37eb009349
@ -83,6 +83,9 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
|||||||
val checklistItem = ChecklistItem(currentMaxId + 1, it, false)
|
val checklistItem = ChecklistItem(currentMaxId + 1, it, false)
|
||||||
items.add(checklistItem)
|
items.add(checklistItem)
|
||||||
saveNote()
|
saveNote()
|
||||||
|
if (items.size == 1) {
|
||||||
|
setupAdapter()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user