Overdue section is not red

pull/1732/head
Alex Baker 2 years ago
parent e22f9e5b6f
commit cbd7b75cc0

@ -17,8 +17,8 @@ data class AdapterSection(
var collapsed: Boolean = false
) {
fun headerColor(context: Context, sortMode: Int, textColor: Int = R.color.text_secondary) =
ContextCompat.getColor(context, if ((sortMode == SORT_DUE || sortMode == SORT_START)
&& (value > 0 || value == -1L)
ContextCompat.getColor(context, if (sortMode == SORT_START
&& value > 0
&& value.toDateTime().plusDays(1).startOfDay().isBeforeNow) {
R.color.overdue
} else {

Loading…
Cancel
Save