Closed Fintasys closed 5 years ago
@Fintasys thanks for reporting it 👍
When I looked over your code I realized that
removeSection
remove its Tag fromsectionViewTypeNumbers
butremoveAllSections
doesn't.Not a big thing but still wanted to let you know.
I faced the same issue. i used sectionedRecyclerViewAdapter.notifyDataSetChanged();
and i worked!
int size = sectionedRecyclerViewAdapter.getSectionCount();
for (int i = 0; i < size; i++) {
Section section = sectionedRecyclerViewAdapter.getSectionForPosition(i);
sectionedRecyclerViewAdapter.removeSection(section);
if(sectionedRecyclerViewAdapter.getSectionCount() <= 0) {
sectionedRecyclerViewAdapter.notifyDataSetChanged();
}
}
When I looked over your code I realized that
removeSection
remove its Tag fromsectionViewTypeNumbers
butremoveAllSections
doesn't.Not a big thing but still wanted to let you know.