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.
In #237, I changed a
Map<Integer, Map<Integer, Integer>>
with aSparseArray<SparseIntArray>
, as suggested by Android Studio. However, when retrieving an nonexistent value from aSparseIntArray
, it returns0
by default, instead of-1
, as expected byCellLayoutManager#getCacheWidth(int, int)
. I updated that so it now returns-1
when retrieving a missing value.