adding a null check at week fragment
This commit is contained in:
parent
97d6ee1427
commit
817b35eabb
1 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,10 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||
updateCalendar()
|
||||
|
||||
mScrollView.onGlobalLayout {
|
||||
if (context == null) {
|
||||
return@onGlobalLayout
|
||||
}
|
||||
|
||||
minScrollY = mRowHeight * context!!.config.startWeeklyAt
|
||||
maxScrollY = mRowHeight * context!!.config.endWeeklyAt
|
||||
|
||||
|
|
Loading…
Reference in a new issue