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

Commit 5ad37213 authored by Rob Carr's avatar Rob Carr Committed by android-build-merger
Browse files

Merge "ViewRootImpl: More null checks for performTraversals." into oc-dev

am: 6f87503e

Change-Id: I3691c0b6f7058d182f647949d66a261113152bc1
parents 591f79ff 6f87503e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2471,6 +2471,9 @@ public final class ViewRootImpl implements ViewParent,
        mInLayout = true;

        final View host = mView;
        if (host == null) {
            return;
        }
        if (DEBUG_ORIENTATION || DEBUG_LAYOUT) {
            Log.v(mTag, "Laying out " + host + " to (" +
                    host.getMeasuredWidth() + ", " + host.getMeasuredHeight() + ")");
@@ -2778,6 +2781,8 @@ public final class ViewRootImpl implements ViewParent,
    private void performDraw() {
        if (mAttachInfo.mDisplayState == Display.STATE_OFF && !mReportNextDraw) {
            return;
        } else if (mView == null) {
            return;
        }

        final boolean fullRedrawNeeded = mFullRedrawNeeded;