Merge pull request #1837 from DoozyDoz/bugfix_all_day_event_sticks_at_top
Fixes #1767
This commit is contained in:
commit
d485be7cf4
1 changed files with 2 additions and 2 deletions
|
@ -453,7 +453,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||
val endDateTime = Formatter.getDateTimeFromTS(event.endTS)
|
||||
val endDayCode = Formatter.getDayCodeFromDateTime(endDateTime)
|
||||
|
||||
if (event.getIsAllDay() || ((startDayCode != endDayCode) && config.showMidnightSpanningEventsAtTop)) {
|
||||
if ((event.getIsAllDay() || (startDayCode != endDayCode)) && config.showMidnightSpanningEventsAtTop) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
@ -541,7 +541,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||
val startDayCode = Formatter.getDayCodeFromDateTime(startDateTime)
|
||||
val endDateTime = Formatter.getDateTimeFromTS(event.endTS)
|
||||
val endDayCode = Formatter.getDayCodeFromDateTime(endDateTime)
|
||||
if (event.getIsAllDay() || ((startDayCode != endDayCode) && config.showMidnightSpanningEventsAtTop)) {
|
||||
if ((event.getIsAllDay() || (startDayCode != endDayCode)) && config.showMidnightSpanningEventsAtTop) {
|
||||
addAllDayEvent(event)
|
||||
} else {
|
||||
var currentDateTime = startDateTime
|
||||
|
|
Loading…
Reference in a new issue