ShamylZakariya / StickyHeaders

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

fixed issue where layout doesn't change when item count goes down to 0 #110

Closed amgadserry closed 5 years ago

amgadserry commented 5 years ago

in case anyone uses some sort of filters there is a possibility that items count could go down to 0 which was not handled by the layout manager where it simply returns when state.itemCount == 0 which cause the layout to stay the same as last rendering cycle while it should remove and recycle all views in case there were any

Signed-off-by: Amgad Serry amgad.serry@hotmail.com