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

Commit 48054241 authored by keunyoung's avatar keunyoung Committed by Keun-young Park
Browse files

fix wrong flag check for virtual display

- FLAG_NEVER_BLANK was always set for non-public display

bug: 16958538
Change-Id: Ia147ac3ca39d687e60ec4b77726f6b6e4c3aeb3b
parent e253fabb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ final class VirtualDisplayAdapter extends DisplayAdapter {
                    mInfo.flags |= DisplayDeviceInfo.FLAG_PRIVATE
                            | DisplayDeviceInfo.FLAG_NEVER_BLANK;
                }
                if ((mInfo.flags & DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR) != 0) {
                if ((mFlags & DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR) != 0) {
                    mInfo.flags &= ~DisplayDeviceInfo.FLAG_NEVER_BLANK;
                } else {
                    mInfo.flags |= DisplayDeviceInfo.FLAG_OWN_CONTENT_ONLY;