- fixed app crash when gson can not deserialize note

- create checklist notes if user paste note with new line char
This commit is contained in:
Pavol Franek
2020-03-01 16:53:09 +01:00
parent 86714229b4
commit 7b12650db9
4 changed files with 75 additions and 68 deletions

View File

@ -59,7 +59,7 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
fun saveAllFragmentTexts() = fragments.values.forEach { (it as? TextFragment)?.saveText(false) }
fun getNoteChecklistItems(position: Int) = (fragments[position] as? ChecklistFragment)?.getChecklistItems()
fun getNoteChecklistItems(position: Int) = (fragments[position] as? ChecklistFragment)?.checklistItems
fun undo(position: Int) = (fragments[position] as? TextFragment)?.undo()