mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Minor readability improvement
This commit is contained in:
@@ -700,7 +700,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
private fun shouldAddEventOnTopBar(isAllDay: Boolean, startDayCode: String, endDayCode: String): Boolean {
|
private fun shouldAddEventOnTopBar(isAllDay: Boolean, startDayCode: String, endDayCode: String): Boolean {
|
||||||
val spansMultipleDays = startDayCode != endDayCode
|
val spansMultipleDays = startDayCode != endDayCode
|
||||||
val isSingleDayAllDayEvent = isAllDay && !spansMultipleDays
|
val isSingleDayAllDayEvent = isAllDay && !spansMultipleDays
|
||||||
return isSingleDayAllDayEvent || spansMultipleDays && config.showMidnightSpanningEventsAtTop
|
return isSingleDayAllDayEvent || (spansMultipleDays && config.showMidnightSpanningEventsAtTop)
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
|
Reference in New Issue
Block a user