summaryrefslogtreecommitdiff
path: root/native/android/input.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:10:20 +0000
commit292826ee35dff9abd0ccedd19153ea0bb5c8dda7 (patch)
tree6d50f9e3990b466f86d6e77e7dc496274e154131 /native/android/input.cpp
parent606325700d546dc97a22e5f0146d19dd4288e49d (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
Diffstat (limited to 'native/android/input.cpp')
0 files changed, 0 insertions, 0 deletions