Merge "Fix issue with views becoming visible with stale content."

This commit is contained in:
Chet Haase
2011-08-25 00:54:14 -07:00
committed by Android (Google) Code Review

View File

@@ -6433,10 +6433,10 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
if ((flags & VISIBILITY_MASK) == VISIBLE) { if ((flags & VISIBILITY_MASK) == VISIBLE) {
if ((changed & VISIBILITY_MASK) != 0) { if ((changed & VISIBILITY_MASK) != 0) {
/* /*
* If this view is becoming visible, set the DRAWN flag so that * If this view is becoming visible, invalidate it in case it changed while
* the next invalidate() will not be skipped. * it was not visible.
*/ */
mPrivateFlags |= DRAWN; invalidate(true);
needGlobalAttributesUpdate(true); needGlobalAttributesUpdate(true);