mirror of
https://github.com/FossifyOrg/Calendar.git
synced 2026-04-29 10:25:29 -04:00
Use isAllDay instead of isSingleDayAllDayEvent to decide top bar placement
This should fix #82. In my opinion, it makes much more sense to show multi-day all-day events always in the top bar (like single-day all-day events), independent of this config setting.
This commit is contained in:
@@ -752,8 +752,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
|
||||
private fun shouldAddEventOnTopBar(isAllDay: Boolean, startDayCode: String, endDayCode: String): Boolean {
|
||||
val spansMultipleDays = startDayCode != endDayCode
|
||||
val isSingleDayAllDayEvent = isAllDay && !spansMultipleDays
|
||||
return isSingleDayAllDayEvent || (spansMultipleDays && config.showMidnightSpanningEventsAtTop)
|
||||
return isAllDay || (spansMultipleDays && config.showMidnightSpanningEventsAtTop)
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
|
||||
Reference in New Issue
Block a user