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

Commit 6e81e57b authored by Romain Guy's avatar Romain Guy
Browse files

Prevent crash in View when gathering attributes without an AttachInfo.

Bug #3385339

Change-Id: I06b6f03721b52ab0b9d13c2fb3e133ae25d99970
parent 8d2959dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -893,7 +893,7 @@ public final class ViewRoot extends Handler implements ViewParent,
            }
        }

        if (attachInfo.mRecomputeGlobalAttributes) {
        if (attachInfo.mRecomputeGlobalAttributes && host.mAttachInfo != null) {
            //Log.i(TAG, "Computing view hierarchy attributes!");
            attachInfo.mRecomputeGlobalAttributes = false;
            boolean oldScreenOn = attachInfo.mKeepScreenOn;