making a context nullable
This commit is contained in:
parent
8823f8199d
commit
edd6bafa43
|
@ -106,7 +106,7 @@ class DayFragment : Fragment() {
|
|||
fun updateCalendar() {
|
||||
val startTS = Formatter.getDayStartTS(mDayCode)
|
||||
val endTS = Formatter.getDayEndTS(mDayCode)
|
||||
context!!.dbHelper.getEvents(startTS, endTS) {
|
||||
context?.dbHelper?.getEvents(startTS, endTS) {
|
||||
receivedEvents(it)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue