commit | 7ef1e773fdf5f7aadf151a682c7f55a1e4f3c502 | [log] [tgz] |
---|---|---|
author | Alan Viverette <alanv@google.com> | Mon Jul 20 16:03:04 2015 -0400 |
committer | Alan Viverette <alanv@google.com> | Mon Jul 20 16:03:04 2015 -0400 |
tree | 19c35d76d553322e04044220522cbbc2fc1a075e | |
parent | 29cf9aea5490c42b85aaaa98b6784daff82629f8 [diff] [blame] |
Add missing invalidation check to drawable cache Bug: 22478448 Change-Id: Ic9da1898cd921d8c133ef5397fc97a664601a863
diff --git a/core/java/android/content/res/DrawableCache.java b/core/java/android/content/res/DrawableCache.java index fc70bc60..ba00134 100644 --- a/core/java/android/content/res/DrawableCache.java +++ b/core/java/android/content/res/DrawableCache.java
@@ -52,6 +52,6 @@ @Override public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { - return false; + return Configuration.needNewResources(configChanges, entry.getChangingConfigurations()); } }