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

Commit 336ee0d9 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Don't allow system decorations on rear displays

Fixes: 291159569
Test: Enable "Force desktop mode", then start rear display
      presentation. Observe no crash
Flag: EXEMPT bugfix
Change-Id: I6006b186fcb6ecdf27e6470c17dba909c358210c
parent eec17d59
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5707,7 +5707,9 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
                // VR virtual display will be used to run and render 2D app within a VR experience.
                && mDisplayId != mWmService.mVr2dDisplayId
                // Do not show system decorations on untrusted virtual display.
                && isTrusted();
                && isTrusted()
                // No system decoration on rear display.
                && (mDisplay.getFlags() & Display.FLAG_REAR) == 0;
    }

    /**