Closed huahou closed 10 years ago
If the list view is empty (i.e., adapter does not have any items), IndexOutOfBoundsException is thrown when rotating the device.
The below line of code returns 0, while the adapter does not have any data. int firstVisiblePosition = getFirstVisiblePosition();
There is problem with onRestoreInstanceState in PinnedSectionListView. Add condition about item count in your adapter before call to the findCurrentSectionPosition method
Thanks! Changes were integrated.
If the list view is empty (i.e., adapter does not have any items), IndexOutOfBoundsException is thrown when rotating the device.
The below line of code returns 0, while the adapter does not have any data. int firstVisiblePosition = getFirstVisiblePosition();