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

Commit 55950d5c authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Iterate based on index, not key."

parents 7dfbafd8 c4ec5b63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2445,7 +2445,7 @@ public class Resources {
            LongSparseArray<WeakReference<ConstantState>>> caches) {
        final int N = caches.size();
        for (int i = N - 1; i >= 0; i--) {
            final LongSparseArray<WeakReference<ConstantState>> cache = caches.get(i);
            final LongSparseArray<WeakReference<ConstantState>> cache = caches.valueAt(i);
            if (pruneCache(cache)) {
                caches.removeAt(i);
            }