diff options
author | Chet Haase <chet@google.com> | 2010-12-20 07:40:25 -0800 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2010-12-20 14:09:37 -0800 |
commit | a9b61ac69cd40bf019e640abb34f2b027378994c (patch) | |
tree | da9596b95875d8fa766e03e492a23f2100d5eb24 | |
parent | c4d251bbe19828d6f134ac378fc9124332eb6eae (diff) | |
download | frameworks_base-a9b61ac69cd40bf019e640abb34f2b027378994c.zip frameworks_base-a9b61ac69cd40bf019e640abb34f2b027378994c.tar.gz frameworks_base-a9b61ac69cd40bf019e640abb34f2b027378994c.tar.bz2 |
Make sure background drawables are correct when View is attached
Books had a bug where the search menu item would come back with an
out of date background color. The problem was that the logic to
change the background color was tied into StateListDrawable animations.
These animations were not always completing because the action bar would
remove the associated View and the drawable animations would stop being
scheduled (no handler to post to).
The fix is to always set the drawable state to the current state when
a View is added to the hierarchy.
Change-Id: I0fc8008381f7439b9e49d6449ae618512c8e9dd0
-rw-r--r-- | core/java/android/view/View.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 71d07c6..55d3b16 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -7430,6 +7430,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility initialAwakenScrollBars(); mPrivateFlags &= ~AWAKEN_SCROLL_BARS_ON_ATTACH; } + jumpDrawablesToCurrentState(); } /** |