mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-16 10:54:43 +01:00
add a check to avoid adding week numbers if we dont have the days yet
This commit is contained in:
parent
638d8da787
commit
512e9f303e
@ -124,7 +124,7 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
|
||||
}
|
||||
|
||||
addWeekDayLetters(canvas)
|
||||
if (showWeekNumbers) {
|
||||
if (showWeekNumbers && days.isNotEmpty()) {
|
||||
addWeekNumbers(canvas)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user