List of usage examples for android.util SparseArray delete
public void delete(int key)
From source file:Main.java
public static <T> void deleteInArray(SparseArray<SparseArray<T>> array, int firstKey, int secondKey) { if (array == null) return;/* w ww . j a va2s .c o m*/ SparseArray<T> ts = array.get(firstKey); if (ts == null) return; synchronized (array) { ts.delete(secondKey); if (ts.size() == 0) { array.delete(firstKey); } } }