ShamylZakariya / StickyHeaders

Adapter and LayoutManager for Android RecyclerView which enables sticky header positioning.
MIT License
1.4k stars 185 forks source link

Fixes issue where RecyclerView is throwing an IllegalArgumentExceptio… #70

Closed matheuskiser closed 5 years ago

matheuskiser commented 7 years ago

Fixes issue where RecyclerView is throwing an IllegalArgumentException when trying to recycler view holders. Because the library was adding a view to the parent ViewGroup in onCreateGhostHeaderViewHolder, when the RecyclerView tried to recycle the ViewHolder it checked if the parent ViewGroup is not null. If the ViewGroup is not null, the RecyclerView will throw an IllegalArgumentException.