mark running all-day events with the primary color
This commit is contained in:
parent
b2fe7950a6
commit
fd2ec79435
1 changed files with 6 additions and 1 deletions
|
@ -173,7 +173,12 @@ class EventListAdapter(val activity: SimpleActivity, val mItems: List<ListItem>,
|
|||
var startTextColor = textColor
|
||||
var endTextColor = textColor
|
||||
if (item.startTS <= mNow && item.endTS <= mNow) {
|
||||
startTextColor = redTextColor
|
||||
if (item.isAllDay) {
|
||||
if (Formatter.getDayCodeFromTS(item.startTS) == Formatter.getDayCodeFromTS(mNow))
|
||||
startTextColor = primaryColor
|
||||
} else {
|
||||
startTextColor = redTextColor
|
||||
}
|
||||
endTextColor = redTextColor
|
||||
} else if (item.startTS <= mNow && item.endTS >= mNow) {
|
||||
startTextColor = primaryColor
|
||||
|
|
Loading…
Reference in a new issue