diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt index f1a11190f..e1ea1473e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt @@ -217,7 +217,7 @@ class WeekFragment : Fragment(), WeeklyCalendar { resources.getColor(R.color.theme_light_text_color) } else if (todayCode == dayCode) { primaryColor - } else if (highlightWeekends && isWeekend(i, config.isSundayFirst)) { + } else if (highlightWeekends && isWeekend(curDay.dayOfWeek, !config.isSundayFirst)) { config.highlightWeekendsColor } else { config.textColor