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

Commit a850300f authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Remove null entries from constant state cache"

parents 3197c5da d6ebb3a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2463,7 +2463,7 @@ public class Resources {
        final int N = cache.size();
        for (int i = N - 1; i >= 0; i--) {
            final WeakReference entry = cache.valueAt(i);
            if (entry.get() == null) {
            if (entry == null || entry.get() == null) {
                cache.removeAt(i);
            }
        }