mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-29 09:59:24 +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)
|
addWeekDayLetters(canvas)
|
||||||
if (showWeekNumbers) {
|
if (showWeekNumbers && days.isNotEmpty()) {
|
||||||
addWeekNumbers(canvas)
|
addWeekNumbers(canvas)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user