mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-04-26 15:48:48 +02:00
adding a crashfix at drawing the weekly view grid
This commit is contained in:
parent
97b652dc58
commit
09ad7e72cf
@ -241,7 +241,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun initGrid() {
|
private fun initGrid() {
|
||||||
(0 until config.weeklyViewDays).map { dayColumns[it] }
|
(0 until config.weeklyViewDays).mapNotNull { dayColumns.getOrNull(it) }
|
||||||
.forEachIndexed { index, layout ->
|
.forEachIndexed { index, layout ->
|
||||||
layout.removeAllViews()
|
layout.removeAllViews()
|
||||||
val gestureDetector = getViewGestureDetector(layout, index)
|
val gestureDetector = getViewGestureDetector(layout, index)
|
||||||
@ -596,6 +596,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
allDayRows.last().add(dayIndex)
|
allDayRows.last().add(dayIndex)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wasEventHandled) {
|
if (wasEventHandled) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user