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

Commit 46a4fbb2 authored by Sergey Prigogin's avatar Sergey Prigogin Committed by Gerrit Code Review
Browse files

Merge "Fix a NPE with outlineProvider="none""

parents 52bc790f d0e462e3
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ public class ViewGroup_Delegate {
            // the outline obtained is correct.
            child.setBackgroundBounds();
            ViewOutlineProvider outlineProvider = child.getOutlineProvider();
            if (outlineProvider != null) {
                Outline outline = child.mAttachInfo.mTmpOutline;
                outlineProvider.getOutline(child, outline);
                if (outline.mPath != null || (outline.mRect != null && !outline.mRect.isEmpty())) {
@@ -58,6 +59,7 @@ public class ViewGroup_Delegate {
                    canvas.restoreToCount(restoreTo);
                }
            }
        }
        return thisVG.drawChild_Original(canvas, child, drawingTime);
    }