Merge pull request #2138 from Aga-C/fix-long-events
Fixed displaying long events in weekly view (#2135)
This commit is contained in:
commit
e24b226344
|
@ -552,8 +552,14 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||||
do {
|
do {
|
||||||
val dayOfWeek = dayColumns.indexOfFirst { it.tag == currentDayCode }
|
val dayOfWeek = dayColumns.indexOfFirst { it.tag == currentDayCode }
|
||||||
if (dayOfWeek == -1 || dayOfWeek >= config.weeklyViewDays) {
|
if (dayOfWeek == -1 || dayOfWeek >= config.weeklyViewDays) {
|
||||||
|
if (startDayCode != endDayCode) {
|
||||||
|
currentDateTime = currentDateTime.plusDays(1)
|
||||||
|
currentDayCode = Formatter.getDayCodeFromDateTime(currentDateTime)
|
||||||
|
continue
|
||||||
|
} else {
|
||||||
continue@dayevents
|
continue@dayevents
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val dayColumn = dayColumns[dayOfWeek]
|
val dayColumn = dayColumns[dayOfWeek]
|
||||||
(inflater.inflate(R.layout.week_event_marker, null, false) as ConstraintLayout).apply {
|
(inflater.inflate(R.layout.week_event_marker, null, false) as ConstraintLayout).apply {
|
||||||
|
|
Loading…
Reference in New Issue