Timeline: fix crash on mutable iterator

This commit is contained in:
ganfra 2021-02-15 12:03:50 +01:00
parent 61373b8b51
commit 109a9e816b
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ class TimelineControllerInterceptorHelper(private val positionOfReadMarker: KMut
it.setOnVisibilityStateChanged(ReadMarkerVisibilityStateChangedListener(callback)) it.setOnVisibilityStateChanged(ReadMarkerVisibilityStateChangedListener(callback))
} }
add(readMarker) add(readMarker)
// Use next as we still have some process to do before the next iterator loop
next()
} }
private fun MutableListIterator<EpoxyModel<*>>.removeCallItemIfNeeded( private fun MutableListIterator<EpoxyModel<*>>.removeCallItemIfNeeded(