diff options
| author | 2024-11-21 11:59:50 +0800 | |
|---|---|---|
| committer | 2024-11-21 04:03:22 +0000 | |
| commit | c5350f740a458d980dbddb584e830ca0f7c2e16f (patch) | |
| tree | bbf57defe7a157abce7cb96900521e4adc07322f /api/api_test.go | |
| parent | 7096477493f4c98216ff1a086c6a61fd6f038c4b (diff) | |
Support application opt-out property for universal resizable
It can be used by app with target sdk > 35 but the app still needs
to make all its activities to apply fixed orientation, aspect ratio,
or non-resizable.
Also optimize aspect ratio getter a bit to reduce query of compat
and package property. Because most cases the value is zero if apps
don't declare aspect ratio.
This is similar to Ic0b52872cf0d99965d1ec85abb771a6cb256b8fe
Bug: 357141415
Flag: com.android.window.flags.universal_resizable_by_default
Test: atest SizeCompatTests#testUniversalResizeable
Change-Id: I3308fef65d9c969ec07a22d26083ccae66c42ecb
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions