mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-31 19:05:01 +01:00
Merge pull request #1303 from ikazuhiro/fix-weekends-highlight-in-weekly-view
fix second sutarday and sunday are not highlighted in weekly view
This commit is contained in:
commit
8977da2630
@ -165,8 +165,8 @@ fun getNowSeconds() = System.currentTimeMillis() / 1000L
|
||||
|
||||
fun isWeekend(i: Int, isSundayFirst: Boolean): Boolean {
|
||||
return if (isSundayFirst) {
|
||||
i == 0 || i == 6
|
||||
i == 0 || i == 6 || i == 7 || i == 13
|
||||
} else {
|
||||
i == 5 || i == 6
|
||||
i == 5 || i == 6 || i == 12 || i == 13
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user