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

Commit 45fd5463 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "Don't allow system decorations on rear displays" into main

parents 5fc0a6bb 336ee0d9
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;
    }

    /**