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

Commit aae9f3bf authored by John Reck's avatar John Reck
Browse files

Avoid calling non-final methods in ctor

 Bug: 16239227

 Avoid potential issues in views that override invalidate() but
 are not prepared to have overridden methods called prior to their
 ctor

Change-Id: Ic2574bdfea454451d6881c7e27a6474dc4dbc07c
parent ea4f0107
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3327,7 +3327,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                    child.mRenderNode.setClipToBounds(clipChildren);
                }
            }
            invalidate();
            invalidate(true);
        }
    }

@@ -3342,7 +3342,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
    public void setClipToPadding(boolean clipToPadding) {
        if (hasBooleanFlag(FLAG_CLIP_TO_PADDING) != clipToPadding) {
            setBooleanFlag(FLAG_CLIP_TO_PADDING, clipToPadding);
            invalidate();
            invalidate(true);
        }
    }