diff options
| author | 2024-09-16 15:53:15 +0000 | |
|---|---|---|
| committer | 2024-09-17 09:05:37 +0000 | |
| commit | bd5d38b65f7bf45a24c35958db175ea3b5e69363 (patch) | |
| tree | dc1b1e7c9bd46413494976edcbc489236f6b13ef /libs/androidfw/FileStream.cpp | |
| parent | 31eb3031b9a31d82423f755bef7ff3aa3eb62411 (diff) | |
Fix SCM app letterboxing in desktop mode
Use `topActivityLetterboxAppWidth` and `topActivityLetterboxAppHeight`
to calculate initial bound aspect ratio for all unresizeable apps
entering desktop mode. This ensures the aspect ratio matches the one used
to resolve the size compat configuration as the same bounds are used for
the calculation. This prevents letterboxing in desktop mode due to a
discrepancy in aspect ratio.
Flag: com.android.window.flags.enable_windowing_dynamic_initial_bounds
Test: atest WMShellUnitTests:DesktopTasksControllerTest
Fixes: 367334265
Change-Id: I1e2afcda7f84f232a9f96fffa4b513be512238ca
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions