Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60246609 authored by Songchun Fan's avatar Songchun Fan Committed by Automerger Merge Worker
Browse files

Merge "Revert "[AppsFilter] read-only interface for snapshots"" into tm-dev am: b1f0535c

parents 081389e2 b1f0535c
Loading
Loading
Loading
Loading
+1 −18
Original line number Diff line number Diff line
@@ -21,26 +21,9 @@ package android.util;
 * @hide
 */
public class SparseSetArray<T> {
    private final SparseArray<ArraySet<T>> mData;
    private final SparseArray<ArraySet<T>> mData = new SparseArray<>();

    public SparseSetArray() {
        mData = new SparseArray<>();
    }

    /**
     * Copy constructor
     */
    public SparseSetArray(SparseSetArray<T> src) {
        final int arraySize = src.size();
        mData = new SparseArray<>(arraySize);
        for (int i = 0; i < arraySize; i++) {
            final int key = src.keyAt(i);
            final ArraySet<T> set = src.get(key);
            final int setSize = set.size();
            for (int j = 0; j < setSize; j++) {
                add(key, set.valueAt(j));
            }
        }
    }

    /**
Loading