mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix #614, properly highlight running all-day events at event list view
This commit is contained in:
@ -157,13 +157,11 @@ class EventListAdapter(activity: SimpleActivity, var listItems: ArrayList<ListIt
|
||||
|
||||
var startTextColor = textColor
|
||||
var endTextColor = textColor
|
||||
if (listEvent.startTS <= now && listEvent.endTS <= now) {
|
||||
if (listEvent.isAllDay) {
|
||||
if (Formatter.getDayCodeFromTS(listEvent.startTS) == Formatter.getDayCodeFromTS(now)) {
|
||||
startTextColor = primaryColor
|
||||
}
|
||||
}
|
||||
|
||||
} else if (listEvent.startTS <= now && listEvent.endTS <= now) {
|
||||
if (dimPastEvents && listEvent.isPastEvent) {
|
||||
startTextColor = startTextColor.adjustAlpha(LOW_ALPHA)
|
||||
endTextColor = endTextColor.adjustAlpha(LOW_ALPHA)
|
||||
|
Reference in New Issue
Block a user