Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 124ab11a authored by Jeremy Sim's avatar Jeremy Sim
Browse files

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
parent c3e2c0d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment