Skip to content
Commit fdcb4c9f authored by Mariia Sandrikova's avatar Mariia Sandrikova
Browse files

Add orientation per-app controls.

Overrides for device manufacturers:
- OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT override orientation to SCREEN_ORIENTATION_PORTRAIT
- OVERRIDE_UNDEFINED_ORIENTATION_TO_NOSENSOR override orientation to SCREEN_ORIENTATION_NOSENSOR
- OVERRIDE_LANDSCAPE_ORIENTATION_TO_REVERSE_LANDSCAPE override orientation to SCREEN_ORIENTATION_REVERSE_LANDSCAPE
- OVERRIDE_ANY_ORIENTATION allows OVERRIDE_*_ORIENTATION_TO_* to override any orientation.

PROPERTY_COMPAT_ALLOW_ORIENTATION_OVERRIDE allows app developers to opt-out from per-app overrides above.

Test: atest WmTests:LetterboxUiControllerTest
Fix: 255940284, 265452344, 265451093, 265464455, 266124927
Merged-In: I6d83170632a04e3d60461f37f13acc1de5b6a6cb
Change-Id: I6d83170632a04e3d60461f37f13acc1de5b6a6cb
parent 6f20d51b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment