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 459 forks source link

Fix #266 - fix cell and column width computation #268

Closed MGaetan89 closed 4 years ago

MGaetan89 commented 4 years ago

In #237, I changed a Map<Integer, Map<Integer, Integer>> with a SparseArray<SparseIntArray>, as suggested by Android Studio. However, when retrieving an nonexistent value from a SparseIntArray, it returns 0 by default, instead of -1, as expected by CellLayoutManager#getCacheWidth(int, int). I updated that so it now returns -1 when retrieving a missing value.

MGaetan89 commented 4 years ago

Did you have a chance to look at this @evrencoskun?

evrencoskun commented 4 years ago

@MGaetan89 Yes, I've checked and It seems It works now as expected.