mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-27 00:47:56 +01:00
make the yearly fragment CalendarImpl nullable too
This commit is contained in:
parent
889f59d14d
commit
339e307bf6
@ -27,9 +27,9 @@ class YearFragment : Fragment(), YearlyCalendar {
|
||||
private var mYear = 0
|
||||
private var mSundayFirst = false
|
||||
private var lastHash = 0
|
||||
private var mCalendar: YearlyCalendarImpl? = null
|
||||
|
||||
lateinit var mView: View
|
||||
lateinit var mCalendar: YearlyCalendarImpl
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
mView = inflater.inflate(R.layout.fragment_year, container, false)
|
||||
@ -53,7 +53,7 @@ class YearFragment : Fragment(), YearlyCalendar {
|
||||
}
|
||||
|
||||
fun updateEvents() {
|
||||
mCalendar.getEvents(mYear)
|
||||
mCalendar?.getEvents(mYear)
|
||||
}
|
||||
|
||||
fun setupMonths() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user