Use SparseArray instead of Map<Integer,?> #lint, remove unused import.