Merge branch 'master' into add-checklist-top

This commit is contained in:
Tibor Kaputa
2021-09-28 23:22:11 +02:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@ -135,7 +135,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
private fun showNewItemDialog() {
NewChecklistItemDialog(activity as SimpleActivity) { titles ->
var currentMaxId = items.maxBy { item -> item.id }?.id ?: 0
var currentMaxId = items.maxByOrNull { item -> item.id }?.id ?: 0
val newItems = ArrayList<ChecklistItem>()
titles.forEach { title ->