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

Commit 097e3830 authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am 746079e2: am 9a0799cf: Merge "Have ViewGroups without a parent clip child...

am 746079e2: am 9a0799cf: Merge "Have ViewGroups without a parent clip child visible rects to bounds" into lmp-mr1-dev

* commit '746079e2':
  Have ViewGroups without a parent clip child visible rects to bounds
parents 89b75bdb 746079e2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5113,7 +5113,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
        final int height = mBottom - mTop;

        boolean rectIsVisible = true;
        if (mParent instanceof ViewGroup && ((ViewGroup)mParent).getClipChildren()) {
        if (mParent == null ||
                (mParent instanceof ViewGroup && ((ViewGroup) mParent).getClipChildren())) {
            // Clip to bounds.
            rectIsVisible = rect.intersect(0, 0, width, height);
        }