Minor readability improvement
This commit is contained in:
parent
802db5f29a
commit
e48bff7953
|
@ -700,7 +700,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 isSingleDayAllDayEvent || (spansMultipleDays && config.showMidnightSpanningEventsAtTop)
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
|
|
Loading…
Reference in New Issue