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

Commit 8e2bba35 authored by Chilun's avatar Chilun Committed by android-build-merger
Browse files

Merge "Don't allow enabling system decorations for untrusted virtual displays...

Merge "Don't allow enabling system decorations for untrusted virtual displays (2/2)" into qt-dev am: dffca3a6
am: 87557d8b

Change-Id: I6b840a4b716438fa389980f5804fa99b1199b760
parents 41d930ce 87557d8b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -6963,6 +6963,10 @@ public class WindowManagerService extends IWindowManager.Stub
                        + "not exist: " + displayId);
                return;
            }
            if (displayContent.isUntrustedVirtualDisplay()) {
                throw new SecurityException("Attempted to set system decors flag to an untrusted "
                        + "virtual display: " + displayId);
            }

            mDisplayWindowSettings.setShouldShowSystemDecorsLocked(displayContent, shouldShow);

@@ -7004,6 +7008,10 @@ public class WindowManagerService extends IWindowManager.Stub
                        + displayId);
                return;
            }
            if (displayContent.isUntrustedVirtualDisplay()) {
                throw new SecurityException("Attempted to set IME flag to an untrusted "
                        + "virtual display: " + displayId);
            }

            mDisplayWindowSettings.setShouldShowImeLocked(displayContent, shouldShow);