Merge "Fixed bug with invalidation in top-level Views."
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user