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

Commit 32231ad2 authored by Lingyu Feng's avatar Lingyu Feng
Browse files

Change VirtualDisplayAdapter#shouldOnlyMirror()

When flag VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR is set, the display should
start mirroring when there is no content on it, rather than always
mirroring. Therefore, an activity can still be launched on a display
where VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR is set.

This CL also changes the conditions for
ContentRecorder#startRecordingIfNeeded(), because this type of display
can start mirroring once there is no content on it, even if it can
still host tasks.

Also see the JavaDoc of DisplayManager#VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR.

Bug: 424049071
Test: ActivityBlockingTest
Test: VirtualDeviceMirrorDisplayTest
Test: ContentRecorderTests
Flag: EXEMPT bugfix
Change-Id: Ifcc1fa77a5bc128a0a0486822bd3563d8ad52f2e
parent 94ccf8b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment