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

Commit 428e77b4 authored by Ats Jenk's avatar Ats Jenk
Browse files

Clear task bounds when ActivityOptions request 0,0

Support clearing multi-window task bounds if they are set to 0,0 in
launch bounds in ActivityOptions.
Previously, empty bounds in LaunchParams were treated as the default
value, and not applied.
This change introduces a new property in LaunchParams that is set by
TaskLaunchParamsModifier to indicate that the bounds are set.
This allows LaunchParamsController#layoutTask to determine that new
bounds are requested, even if they are 0,0.

Fixes a scenario with split screen where a task that previously had
bounds set, is launched to split screen. Split screen expects the task
to not have bounds set and that the task should inherit the bounds from
the root task. Allowing split to request 0,0 launch bounds through
ActivityOptions fixes the issue with task having bounds set on it.

Bug: 396315875
Test: atest WmTests:LaunchParamsControllerTests
Flag: EXEMPT, bugfix
Change-Id: Idc16473e488d7e4bfda98f8d49e2f6ae68762c97
parent 908799c4
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