Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32901b4f authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

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

parents b4bf90b4 e4e6e206
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -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));
        }
        }