diff options
author | Christopher Lais <chris+android@zenthought.org> | 2011-01-13 15:02:05 -0600 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-01-14 12:31:26 -0800 |
commit | 6efd2bad954e0e5bd74916a32f036a0f149dcd4d (patch) | |
tree | b800fc721ac0905c4dab35b300e4ffb830290f29 /core/java/android/content | |
parent | d922ae01ca99a2b6d39a9393f86776a1d10ebd14 (diff) | |
download | frameworks_base-6efd2bad954e0e5bd74916a32f036a0f149dcd4d.zip frameworks_base-6efd2bad954e0e5bd74916a32f036a0f149dcd4d.tar.gz frameworks_base-6efd2bad954e0e5bd74916a32f036a0f149dcd4d.tar.bz2 |
Don't drop the drawable cache completely on configuration change
There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared. This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.
This patch also fixes the various constant states to return
correct ChangingConfigurations.
Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
Diffstat (limited to 'core/java/android/content')
-rwxr-xr-x | core/java/android/content/res/Resources.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/content/res/Resources.java b/core/java/android/content/res/Resources.java index e8bf29d..b40a226 100755 --- a/core/java/android/content/res/Resources.java +++ b/core/java/android/content/res/Resources.java @@ -1476,7 +1476,6 @@ public class Resources { } } } - cache.clear(); } /** |