diff options
| author | 2025-03-11 22:18:38 -0700 | |
|---|---|---|
| committer | 2025-03-12 14:26:54 -0700 | |
| commit | 124ab11a3770e62f188f55c11c32f1a1ea580d43 (patch) | |
| tree | 8d94b53e17ef0804750f5e3565abee8b30724bd3 /libs/androidfw/AssetsProvider.cpp | |
| parent | c3e2c0d0969ad18a78a6e25dcc74e418c678f81b (diff) | |
Fix flex split layout on landscape phones
Improves the calculation for apps that are extending offscreen.
Previously, offscreen bounds were calculated in a way that presumed symmetry (both left and right app having the same size in 50:50 split). But on phones in landscape orientation, we use a non-symmetric layout due to the camera cutout -- so the left app is actually larger in 50:50. This caused a bug.
Fixed in this CL by changing the way surface bounds are calculated.
Bug: 401396438
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: No longer fails test activityEmbeddingSplitSurfaceAreEven. Manually verified with smoke test and common flex split flows.
Change-Id: I1edbc2b052ab8f3dc770dcf789cc50536cc0a1d9
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions