mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Fix: Wrong day highlighted in week view
If `startWeekWithCurrentDay` was enabled, `highlightWeekends` lead to the wrong days beeing highlighted, because the column index passed to `isWeekend` didn't correspond to the day of week anymore. This change fixes this by using `curDay.dayOfWeek` instead.
This commit is contained in:
@@ -217,7 +217,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
resources.getColor(R.color.theme_light_text_color)
|
resources.getColor(R.color.theme_light_text_color)
|
||||||
} else if (todayCode == dayCode) {
|
} else if (todayCode == dayCode) {
|
||||||
primaryColor
|
primaryColor
|
||||||
} else if (highlightWeekends && isWeekend(i, config.isSundayFirst)) {
|
} else if (highlightWeekends && isWeekend(curDay.dayOfWeek, !config.isSundayFirst)) {
|
||||||
config.highlightWeekendsColor
|
config.highlightWeekendsColor
|
||||||
} else {
|
} else {
|
||||||
config.textColor
|
config.textColor
|
||||||
|
Reference in New Issue
Block a user