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

Override process config for cold start on secondary screens

Some apps use Application context to get display configuration and
metrics for their activities. This leads to incorrect configuration
used for activities on secondary screens. This is an issue on the
application side, but the framework can provide some compatibility -
override process-level config to match the display where the first
activity was launched.

Once an activity in the process is launched on the default display,
stop watching other displays config to preserve compatibility.

Bug: 131179060
Test: atest WmTests:ActivityRecordTests#testSetProcessOverridesConfig
Test: Launch GMail on secondary screen
Change-Id: If76f4a83c708f47fd914da68dd4b7366ffd8b88c
parent a7423ca9
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