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

Set UNSELECTED_POSITION from SelectionHandler.unselectedCellView() #325

Open mgodf opened 4 years ago

mgodf commented 4 years ago

SelectionHandler tracks which row and column is currently selected with mSelectedRowPosition mSelectedColumnPosition variables. When clearing the selection, these should also be set to UNSELECTED_POSITION. If this is not done, when the previously selected cell is scrolled out of view and then back, the previous selection will be restored when the viewholder is bound again