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

Commit 76da8b3c authored by Piotr Wilczyński's avatar Piotr Wilczyński
Browse files

Change default display when lid closed

When the lid closed device state is set, find a secondary display that can be the default display and create a layout where this display is enabled and the internal display is disabled.

If the default display is removed, find another secondary display. If it can't be found, go back to the default layout.

Bug: 400351704
Test: DeviceStateToLayoutMapTest, DisplayManagerServiceTest, DisplayTopologyCoordinatorTest, LogicalDisplayMapperTest
Flag: com.android.server.display.feature.flags.change_default_display_lid_closed
Change-Id: Ib9c39ecc0917257bc2717e9b5981d084fb5df481
parent 5bbe44bf
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