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

Commit 23cbd0ec authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Do not consider "desktop" displays as fixed orientation

The current logic breaks public trusted virtual displays not
created with VDM, even if FLAG_ROTATES_WITH_CONTENT is
explicitly specified.

Additionally, isPublicSecondaryDisplayWithDesktopModeForceEnabled
should return "false" for virtual displays in general, because
the freeform windowing mode also breaks orientation requests from
activities running on these displays.

The new logic in isPublicSecondaryDisplayWithDesktopModeForceEnabled:
  - return false if FREEFORM is not supported on this display. This
    automatically includes all VDM displays because VDM doesn't
    support this windowing mode (for now)
  - return false for virtual displays without system decorations
    support (to allow virtual displays to explicitly opt-in - this API
    is hidden, and we can expose a different API in the future)

Fix: 407786865
Test: atest VirtualDisplayTest
Test: presubmit
Flag: EXEMPT bugfix

Change-Id: I42049d7f9b17eb365269fe8e25c7a64b289cd446
parent 40af2bbb
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