mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
add a check to avoid adding week numbers if we dont have the days yet
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user