mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-23 07:20:24 +01:00
make dayfragment receiver context nullable
This commit is contained in:
parent
35fdbed726
commit
935c499b95
@ -119,7 +119,7 @@ class DayFragment : Fragment(), DBHelper.EventUpdateListener, DeleteEventsListen
|
|||||||
|
|
||||||
private fun receivedEvents(events: List<Event>) {
|
private fun receivedEvents(events: List<Event>) {
|
||||||
val sorted = ArrayList<Event>(events.sortedWith(compareBy({ it.startTS }, { it.endTS }, { it.title }, { it.description })))
|
val sorted = ArrayList<Event>(events.sortedWith(compareBy({ it.startTS }, { it.endTS }, { it.title }, { it.description })))
|
||||||
val filtered = context.getFilteredEvents(sorted)
|
val filtered = context?.getFilteredEvents(sorted) ?: ArrayList<Event>()
|
||||||
|
|
||||||
activity?.runOnUiThread {
|
activity?.runOnUiThread {
|
||||||
updateEvents(filtered)
|
updateEvents(filtered)
|
||||||
|
Loading…
Reference in New Issue
Block a user