diff options
author | Chet Haase <chet@google.com> | 2011-06-17 16:00:57 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-17 16:00:57 -0700 |
commit | 1790a10eea34b777dcca54cfafb05ef4914b23fb (patch) | |
tree | b599b8835ffb4594f0a2459d0500b4c6626afd5b | |
parent | d11f591b45008147cf0854b2af8712692cef6f03 (diff) | |
parent | c8a9a70c5fe1be7e22f861f40b8cf3a9cf147cb2 (diff) | |
download | frameworks_base-1790a10eea34b777dcca54cfafb05ef4914b23fb.zip frameworks_base-1790a10eea34b777dcca54cfafb05ef4914b23fb.tar.gz frameworks_base-1790a10eea34b777dcca54cfafb05ef4914b23fb.tar.bz2 |
Merge "Invisible views can't start animations"
-rw-r--r-- | core/java/android/view/View.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 1381b84..888f0c0 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -6089,7 +6089,11 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit /* Check if the VISIBLE bit has changed */ if ((changed & INVISIBLE) != 0) { needGlobalAttributesUpdate(false); - invalidate(true); + /* + * If this view is becoming invisible, set the DRAWN flag so that + * the next invalidate() will not be skipped. + */ + mPrivateFlags |= DRAWN; if (((mViewFlags & VISIBILITY_MASK) == INVISIBLE) && hasFocus()) { // root view becoming invisible shouldn't clear focus |