Minor readability improvement

This commit is contained in:
Naveen 2022-11-25 03:14:04 +05:30
parent 802db5f29a
commit e48bff7953
1 changed files with 1 additions and 1 deletions

View File

@ -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")