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

Commit 38098310 authored by Sergey Prigogin's avatar Sergey Prigogin Committed by android-build-merger
Browse files

Merge "Merge "Fix a NPE with outlineProvider="none"" am: 46a4fbb2 am:...

Merge "Merge "Fix a NPE with outlineProvider="none"" am: 46a4fbb2 am: 65d65ec1 am: a3460f2b" into oc-dev-plus-aosp
am: 939ba359

Change-Id: Ib427f57b4a505b1622758773f24c44e1bd69db6d
parents 77ca79bb 939ba359
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);
    }