update day labels in weekly view on resume to fix some color glitching
This commit is contained in:
parent
48cd9b608e
commit
e642d91636
|
@ -66,12 +66,12 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||||
|
|
||||||
mRes = resources
|
mRes = resources
|
||||||
mCalendar = WeeklyCalendarImpl(this, context)
|
mCalendar = WeeklyCalendarImpl(this, context)
|
||||||
setupDayLabels()
|
|
||||||
return mView
|
return mView
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
setupDayLabels()
|
||||||
mCalendar.updateWeeklyCalendar(mWeekTimestamp)
|
mCalendar.updateWeeklyCalendar(mWeekTimestamp)
|
||||||
|
|
||||||
mView.week_events_scrollview.viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlobalLayoutListener {
|
mView.week_events_scrollview.viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlobalLayoutListener {
|
||||||
|
|
Loading…
Reference in New Issue