summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Mariia Sandrikova <mariiasand@google.com> 2022-12-25 19:47:59 +0000
committer Mariia Sandrikova <mariiasand@google.com> 2023-01-04 20:35:05 +0000
commitf7eeb3d63f2cebb6abb501d05c543737263d5d97 (patch)
tree8c2a9d2eb48cf3a27cf865ca6af96d7707e908c4 /libs/androidfw/ApkParsing.cpp
parentbc2a65562efeace2f98e178faba1a9053b3324b3 (diff)
Add a way to disable auto rotation for immersive apps
Provide a way to always show a rotation button instead of auto rotating for immersive applications when the following conditions are met: 1) Top activity requests to hide status and navigation bars 2) Top activity is fullscreen and in optimal orientation (without letterboxing) 3) Rotation will lead to letterboxing due to fixed orientation. 4) ignoreOrientationRequest is enabled and config_letterboxIsDisplayRotationImmersiveAppCompatPolicyEnabled is enabled This is needed because immersive apps, such as games, are often not optimized for all orientations and can have a poor UX when rotated. Additionally, some games relying on sensors for the gameplay so users can trigger such rotations accidentally when auto rotation is on. Test: atest LetterboxConfigurationDeviceConfigTests DisplayRotationCompatPolicyForImmersiveAppsTests Bug: 251404186 Change-Id: I0b5d8f666b8bec9bd9d6fb5303986d3c288e283f Merged-In: I0b5d8f666b8bec9bd9d6fb5303986d3c288e283f
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions