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

Commit ea7b5d80 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "DO NOT MERGE Fix crash in case of no overlays" into pi-dev

am: e8a1e7a4

Change-Id: I2b70059cc6735bfdf3fd60f4837b413f8966c637
parents f3ebcb59 e8a1e7a4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -126,7 +126,8 @@ public class ScreenDecorations extends SystemUI implements Tunable {

            @Override
            public void onDisplayChanged(int displayId) {
                if (mRotation != RotationUtils.getExactRotation(mContext)) {
                if (mOverlay != null && mBottomOverlay != null
                        && mRotation != RotationUtils.getExactRotation(mContext)) {
                    // We cannot immediately update the orientation. Otherwise
                    // WindowManager is still deferring layout until it has finished dispatching
                    // the config changes, which may cause divergence between what we draw