MultiViewAdapter
MultiViewAdapter copied to clipboard
IllegalStateException when loading items
I'm experiencing a crash when reloading my sections. In my setup we have 1xItemSection + 2xListSection, all using the same view item type. On binding, we hide all sections, and when we update the dataset we do the following:
- setItem on ItemSection (could be a null item)
- set on both ListSection
- show the section if they contain data.
We're also using DiffUtil for both list sections. The crash is happening on NestedSection.java #199 When we debug the section had data and itemPosition is usually 0.
Thanks in advance.
- Android API level: [28]
- Library Version: [3.0.0]
- Recyclerview Version [AndroidX 1.0.0]