We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33c89d6 + 773c6bb commit 7eb03e2Copy full SHA for 7eb03e2
sample/src/main/java/com/kizitonwose/calendar/sample/compose/Utils.kt
@@ -220,11 +220,11 @@ private val CalendarLayoutInfo.completelyVisibleMonths: List<CalendarMonth>
220
val lastItem = visibleItemsInfo.last()
221
val viewportSize = this.viewportEndOffset + this.viewportStartOffset
222
if (lastItem.offset + lastItem.size > viewportSize) {
223
- visibleItemsInfo.removeLast()
+ visibleItemsInfo.removeAt(visibleItemsInfo.lastIndex)
224
}
225
val firstItem = visibleItemsInfo.firstOrNull()
226
if (firstItem != null && firstItem.offset < this.viewportStartOffset) {
227
- visibleItemsInfo.removeFirst()
+ visibleItemsInfo.removeAt(0)
228
229
visibleItemsInfo.map { it.month }
230
0 commit comments