myinnos / AlphabetIndex-Fast-Scroll-RecyclerView

A Powerful AlphabetIndex FastScroller Library for Android's RecyclerView!
https://myinnos.github.io/AlphabetIndex-Fast-Scroll-RecyclerView/
Apache License 2.0
603 stars 114 forks source link

getSections() should be called if adapter calls notifyDataSetChanged() #19

Closed siralam closed 5 years ago

siralam commented 7 years ago

Normally we set adapter in recyclerview first before we downloaded all items from internet, and set the list later on which at the same time calls notifyDataSetChanged().

But I found that the indexBar doesn't update accordingly. In fact since this is the case, the "sectionPositions" arraylist always remains empty.

myinnos commented 7 years ago

Your right, Currently this Lib is act like as you said, Basically if there is no data or User playing with views(VISIBLE/INVISIBLE) we dont need to append the adapter to recycler. Incase if you feel that any right process, please fork the repo and pull the request. i will update your code with current Lib. Thank you.