fix #1373, make sure the proper day is highlighted at the weekly view

This commit is contained in:
tibbi 2021-05-14 13:39:13 +02:00
parent 0db772cdf9
commit aa3d048468
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,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 - 1, config.isSundayFirst)) {
resources.getColor(R.color.red_text)
} else {
config.textColor