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