Skip to content
Commit 823af6ed authored by Andrii Kulian's avatar Andrii Kulian
Browse files

DO NOT MERGE Don't send config change when display is removed

When a private display is removed, we're finishing all activities
that were on that display. But because the display will not be
available during activity finish process, we're fist moving all
stacks to the back of the default display, so that the removed
display won't be referenced accidentally.
This, however, can cause an additional resize message to the client
from the WindowManager if the size of the default display is
different, which will cause a configuration change. To avoid that
this CL freezes the config of the stacks being finished by overriding
to their current configs.

Bug: 73379938
Test: ActivityManagerMultiDisplayTests#testContentDestroyOnDisplayRemoved
Change-Id: I20e0becab097075ccb84e471e366a2ace37ab7cc
(cherry picked from commit dce1da45)
parent 983c1e54
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