Merge "Remove null entries from constant state cache"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a850300fd5
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user