mark running all-day events with the primary color

This commit is contained in:
tibbi 2017-05-24 19:42:34 +02:00
parent b2fe7950a6
commit fd2ec79435

View file

@ -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) {
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