mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-31 03:30:17 +02:00
adding a list widget related crashfix
This commit is contained in:
parent
acb8124e08
commit
842e01d29b
@ -142,7 +142,7 @@ class EventListWidgetAdapter(val context: Context) : RemoteViewsService.RemoteVi
|
||||
}
|
||||
}
|
||||
|
||||
private fun getItemViewType(position: Int) = if (events[position] is ListEvent) ITEM_EVENT else ITEM_HEADER
|
||||
private fun getItemViewType(position: Int) = if (events.getOrNull(position) is ListEvent) ITEM_EVENT else ITEM_HEADER
|
||||
|
||||
override fun getLoadingView() = null
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user