minor code formatting

This commit is contained in:
tibbi 2021-07-06 14:49:42 +02:00
parent 20ce0e6e56
commit f508d0aaf5

View file

@ -437,8 +437,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
val endDayCode = Formatter.getDayCodeFromDateTime(endDateTime)
if (event.getIsAllDay() || ((startDayCode != endDayCode) && config.showMidnightSpanningEventsAtTop)) {
addAllDayEvent(event)
}
else {
} else {
var currentDateTime = startDateTime
var currentDayCode = Formatter.getDayCodeFromDateTime(currentDateTime)
do {
@ -512,6 +511,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
(duration * minuteHeight).toInt() - 1
}
}
setOnClickListener {
Intent(context, EventActivity::class.java).apply {
putExtra(EVENT_ID, event.id!!)