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

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

[2/n] Introduce dynamic bounds calculation to prevent letterboxing

When entering desktop windowing, applications should no longer be
letterboxed. This means scaling down apps in SCM for all unresizable
apps so intial bounds match scale of the fullscreen bounds. This removes
letterboxing while ensuring the apps layout is not disrupted.

For portrait resizable apps when the device is in landscape, the height
of the initial bounds will match the desired app height for desktopmode
while the width will remain from the apps fullscreen width.

For landscape resizable apps when the device is portrait, the fullscreen
height of the app will be preserved while the width will be set to a
custom value.

Flag: com.android.window.flags.enable_windowing_dynamic_initial_bounds
Bug: 319820230
Bug: 324378380
Fixes: 335401172
Fixes: 346821376
Test: atest WmTests:DesktopModeLaunchParamsModifierTests
Test: atest WmTests:DesktopModeUtilsTests
Test: atest WmTests:DisplayContentTests
Test: atest WMShellUnitTests:DesktopTasksControllerTest

Change-Id: Ie111c025256de9afdd9d2568a28a5078413fcbfe
parent b564eb41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment