Merge "use a SparseArray instead of integer hashmap"