davideas / FlexibleAdapter

Fast and versatile Adapter for RecyclerView which regroups several features into one library to considerably improve the user experience :-)
Apache License 2.0
3.55k stars 553 forks source link

clearAllBut() not working when expanded is true #715

Open fadoers opened 5 years ago

fadoers commented 5 years ago

First of all, thank you for providing such an excellent project. When I expand all the items and then call the clearAllBut method, all top-level expandableItems will not be removed. This is the error message:

default

This is the code location:

default

Here is the use of the collapse method for each traversal, and the method will remove all subItems internally, and finally the value of itemCount will be greater than getItemCount()

default

This is the case: default default default