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

Skip to content
Commit bd5d38b6 authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas
Browse files

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
parent 31eb3031
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