SectionAdapter.numberOfRows gets section == -1
When scrolling variable section==-1 is passed method numberOfRows. Correct section numbers are also passed to this method, and it is not a big problem to check section in method body but this -1 is very unexpected.
Also, in Demo example we cannot watch such behavior cos` for every section (whatever it is) method returns 35, even for section -1
I am also noticing this same behavior
Lame, but it works for me. For the time being ...
@Override public int numberOfRows(int section) { if(section == -1) { System.out.println("Why???"); return 0; } return children.get(section).size(); }
same here
I had to verify if section passed was -1 and return 0.