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

Commit 995f5240 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: I3c951fd2572abbada566494b5954697be098865d
parents 111041d6 6f87503e
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -2476,6 +2476,9 @@ public final class ViewRootImpl implements ViewParent,
        mInLayout = true;
        mInLayout = true;


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


        final boolean fullRedrawNeeded = mFullRedrawNeeded;
        final boolean fullRedrawNeeded = mFullRedrawNeeded;