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

Commit f91c0805 authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas
Browse files

Don't inherit task bounds from same instance in DMLPM

During phases of the DesktopModeLaunchParamsModifier calculations the
current activity can be made visible before the bounds phase is
complete. This causes it to be detected as a top visible freeform
activity and since it matches the launching activity, is seen as a
second instance where its bounds are inherited. However, since the
bounds phase is not complete, the bounds it inherits are wrong. To
prevent this, do not inherit the task bounds of an existing instance if
it is that same instance (has the same task).

Flag: com.android.window.flags.inherit_task_bounds_for_trampoline_task_launches
Bug: 422364585
Test: atest WmTests:DesktopModeLaunchParamsModifierTests

Change-Id: Id17a86110633cc00acfb14ce24736b7f95f4f591
parent ad62b78f
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