Merge pull request #1167 from Honk2/master
modified day code validation for multi day events to fix 1164
This commit is contained in:
commit
847262170b
|
@ -601,8 +601,9 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||
}
|
||||
}
|
||||
|
||||
val dayCode = Formatter.getDayCodeFromDateTime(startDateTime)
|
||||
val dayOfWeek = dayColumns.indexOfFirst { it.tag == dayCode }
|
||||
val dayCodeStart = Formatter.getDayCodeFromDateTime(startDateTime).toInt()
|
||||
val dayCodeEnd = Formatter.getDayCodeFromDateTime(endDateTime).toInt()
|
||||
val dayOfWeek = dayColumns.indexOfFirst { it.tag.toInt() == dayCodeStart || (it.tag.toInt() > dayCodeStart && it.tag.toInt() <= dayCodeEnd) }
|
||||
if (dayOfWeek == -1) {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue