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

Commit c4ec5b63 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Iterate based on index, not key.

Bug: 18785949
Change-Id: I5d92fedac9f71b997f87f7035635fde276756faa
parent 2584736f
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);
            }