Closed PaNaVTEC closed 10 years ago
I debugged and this bug is an error about my SectionIndexer, but I think the listview should be protected against NullPointer. Close it if you want.
Another case for SectionIndexer caused the problem, just for someone else may have the same problem.
In some device, after update data in adapter. SectionIndexer.getSections
will not the invoke again. If your implementation of getPositionForSection
is base on some cache generated in getSections
, then here is the problem.
One workaround can be found here: http://stackoverflow.com/questions/11638551/android-fastscrolling-sectionindexer-getsections-is-called-only-once
I have this while scrolling, The previous line: View nextSectionView = getChildAt(nextSectionPosition - firstVisibleItem); nextSectionPosition - firstVisibleItem gives -1 so nextSectionView is null.