MultiViewAdapter icon indicating copy to clipboard operation
MultiViewAdapter copied to clipboard

IllegalStateException when loading items

Open AlonShahaf opened this issue 5 years ago • 0 comments

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:

  1. setItem on ItemSection (could be a null item)
  2. set on both ListSection
  3. 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]

AlonShahaf avatar Jun 28 '20 09:06 AlonShahaf