Merge pull request #1577 from B14CK313/master

Fix: Wrong days highlighted in week view
This commit is contained in:
Tibor Kaputa 2021-12-20 19:48:58 +01:00 committed by GitHub
commit 9e6d66c669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, true)) {
config.highlightWeekendsColor
} else {
config.textColor