From 37eb009349a563126a4b1a2bb3ce699f2081c350 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 9 Dec 2018 10:42:48 +0100 Subject: [PATCH] refresh the checklist if the first item is added --- .../simplemobiletools/notes/pro/fragments/ChecklistFragment.kt | 3 +++ 1 file changed, 3 insertions(+) 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 ce30c2f2..8fed4b1d 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 @@ -83,6 +83,9 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener { val checklistItem = ChecklistItem(currentMaxId + 1, it, false) items.add(checklistItem) saveNote() + if (items.size == 1) { + setupAdapter() + } } }