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

Commit 529cbcd0 authored by Craig Mautner's avatar Craig Mautner
Browse files

Use new DisplayManager flag to show own content only.

Change-Id: I8b2666e5849e57b5eb2ed73ed3d5e39da2dbd55d
parent 4504de5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2986,8 +2986,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
            try {
                virtualDisplay = dm.createVirtualDisplay(mService.mContext,
                        VIRTUAL_DISPLAY_BASE_NAME, width, height, density, surface,
                        // TODO: Add VIRTUAL_DISPLAY_FLAG_DISABLE_MIRRORING when it is available.
                        DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC);
                        DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC |
                        DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY);
            } finally {
                Binder.restoreCallingIdentity(ident);
            }