Merge "Fixed bug with invalidation in top-level Views."

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

View File

@@ -6497,6 +6497,8 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
if (mParent instanceof ViewGroup) { if (mParent instanceof ViewGroup) {
((ViewGroup) mParent).onChildVisibilityChanged(this, (flags & VISIBILITY_MASK)); ((ViewGroup) mParent).onChildVisibilityChanged(this, (flags & VISIBILITY_MASK));
((View) mParent).invalidate(true); ((View) mParent).invalidate(true);
} else if (mParent != null) {
mParent.invalidateChild(this, null);
} }
dispatchVisibilityChanged(this, (flags & VISIBILITY_MASK)); dispatchVisibilityChanged(this, (flags & VISIBILITY_MASK));
} }