use a function for getChecklistItems, not variable

This commit is contained in:
tibbi
2022-03-08 18:50:05 +01:00
parent 4f24a2d93e
commit c1e664d9bb
4 changed files with 19 additions and 18 deletions

View File

@ -65,7 +65,7 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
fun getNoteChecklistRawItems(position: Int) = (fragments[position] as? ChecklistFragment)?.items
fun getNoteChecklistItems(position: Int) = (fragments[position] as? ChecklistFragment)?.checklistItems
fun getNoteChecklistItems(position: Int) = (fragments[position] as? ChecklistFragment)?.getChecklistItems()
fun undo(position: Int) = (fragments[position] as? TextFragment)?.undo()