mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Fix: Events spanning multiple days are only shown on first one
This commit is contained in:
@ -127,7 +127,10 @@ class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListene
|
|||||||
val startDateTime = Formatter.getDateTimeFromTS(it.startTS)
|
val startDateTime = Formatter.getDateTimeFromTS(it.startTS)
|
||||||
shownMonthDateTime.year == startDateTime.year && shownMonthDateTime.monthOfYear == startDateTime.monthOfYear
|
shownMonthDateTime.year == startDateTime.year && shownMonthDateTime.monthOfYear == startDateTime.monthOfYear
|
||||||
} else {
|
} else {
|
||||||
Formatter.getDayCodeFromTS(it.startTS) == mSelectedDayCode
|
val selectionDate = Formatter.getDateTimeFromCode(mSelectedDayCode).toLocalDate()
|
||||||
|
val startDate = Formatter.getDateFromTS(it.startTS)
|
||||||
|
val endDate = Formatter.getDateFromTS(it.endTS)
|
||||||
|
selectionDate in startDate..endDate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user