mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
adding a null check at week fragment
This commit is contained in:
parent
97d6ee1427
commit
817b35eabb
@ -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…
x
Reference in New Issue
Block a user