mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-05 13:08:28 +01:00
make sure month fragment clickable background is properly added
This commit is contained in:
parent
2ad7b679a7
commit
7ee682f32a
@ -34,6 +34,7 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
|
||||
|
||||
onGlobalLayout {
|
||||
if (!wereViewsAdded && days.isNotEmpty()) {
|
||||
measureSizes()
|
||||
addViews()
|
||||
monthView.updateDays(days)
|
||||
}
|
||||
@ -45,7 +46,9 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
|
||||
measureSizes()
|
||||
dayClickCallback = callback
|
||||
days = newDays
|
||||
addViews()
|
||||
if (dayWidth != 0f && dayHeight != 0f) {
|
||||
addViews()
|
||||
}
|
||||
monthView.updateDays(days)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user