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

Commit 18974932 authored by Massimo Carli's avatar Massimo Carli
Browse files

Fix NullPointerException on mAppCompatDisplayInsets

Flag: EXEMPT small fix
Fix: 378360634
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:SizeCompatTests

Change-Id: I748ff1fda2a3929c4296e4032b7c1a7bfe6ea33f
parent 4d1ca400
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8893,6 +8893,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
                mAppCompatController.getAppCompatSizeCompatModePolicy();

        if (scmPolicy.hasAppCompatDisplayInsetsWithoutInheritance()
                && mAppCompatDisplayInsets != null
                && !mAppCompatDisplayInsets.mIsInFixedOrientationOrAspectRatioLetterbox) {
            // App prefers to keep its original size.
            // If the size compat is from previous fixed orientation letterboxing, we may want to