From deec13364db20ff733c8bb55f6d1cdf908daeae4 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Fri, 15 Oct 2021 09:22:13 +0100 Subject: [PATCH] fix weekly view highlighting weekends incorrectly --- .../simplemobiletools/calendar/pro/fragments/WeekFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e91732385..ac6b14f94 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(curDay.dayOfWeek - 1, config.isSundayFirst)) { + } else if (highlightWeekends && isWeekend(i, config.isSundayFirst)) { resources.getColor(R.color.red_text) } else { config.textColor