mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
adding a null check at week fragment
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user