Merge pull request #1512 from KryptKode/fix/weekly-view-highlight-weekends

fix weekly view highlighting weekends incorrectly
This commit is contained in:
Tibor Kaputa 2021-10-15 11:27:25 +02:00 committed by GitHub
commit abcf79c6f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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(curDay.dayOfWeek - 1, config.isSundayFirst)) {
} else if (highlightWeekends && isWeekend(i, config.isSundayFirst)) {
resources.getColor(R.color.red_text)
} else {
config.textColor