evrencoskun / TableView

TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
MIT License
3.14k stars 454 forks source link

[Bug] Multiple hide columns -> showAllHided columns generates IndexOutOfBoundsException #343

Open Andrey-Morenkov opened 3 years ago

Andrey-Morenkov commented 3 years ago

[Preliminary setup]: has list of some columns to hide (for example random 27 columns to hide / 31 all columns)

[Steps to reproduce]: 1) hide all columns by: columnsToHide.forEach { hideColumn(it) } 2) revert by calling showAllHidedColumns() 3) repeat step 1and 2 4) try to hide columns one more time

[Actual Result]: java.lang.IndexOutOfBoundsException: Index: 30, Size: 27 Also before step 4) we have length discrepancy between columns items and cells items Also detected this log after step 3): E/CellRecyclerView: mIsVerticalScrollListenerRemoved has been tried to remove itself before add new one

[Expect Result]: Can hide columns -> showColumns as many times as wanted without any issues