Open afh905 opened 4 years ago
I see that this error appears in this version 0.8.9.2 with changes in #301. In the version 0.8.9 the code for getSmallerHiddenCount is correct:
private int getSmallerHiddenCount(int index, SparseArray list) {
int count = 0;
for (int i = 0; i < index; i++) {
int key = list.keyAt(i);
// get the object by the key.
if (list.get(key) != null) {
count++;
}
}
Hi
First of all, Thank you for this amazing library!
I have a problem with the hideColumn method in Tableview. When I remove my first column, all work fine but, in the second hide, if the column to hide is previous the column than i removed before, the hidden column is not correct. I think the problem are with the method getSmallerHiddenCount in VisibilityHandler. This method increment count ever I previously hide a column and it is added to mHideColumnList
The steps to reproduce this error are:
I think that getSmallerHiddenCount should check that the elements in mHideColumnList has a key < to the desire position to hide and not position in the list.
Thanks!!