mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-11 01:10:50 +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 {
|
onGlobalLayout {
|
||||||
if (!wereViewsAdded && days.isNotEmpty()) {
|
if (!wereViewsAdded && days.isNotEmpty()) {
|
||||||
|
measureSizes()
|
||||||
addViews()
|
addViews()
|
||||||
monthView.updateDays(days)
|
monthView.updateDays(days)
|
||||||
}
|
}
|
||||||
@ -45,7 +46,9 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
|
|||||||
measureSizes()
|
measureSizes()
|
||||||
dayClickCallback = callback
|
dayClickCallback = callback
|
||||||
days = newDays
|
days = newDays
|
||||||
addViews()
|
if (dayWidth != 0f && dayHeight != 0f) {
|
||||||
|
addViews()
|
||||||
|
}
|
||||||
monthView.updateDays(days)
|
monthView.updateDays(days)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user