Skip to content
Commit bed4a065 authored by Jerry Chang's avatar Jerry Chang
Browse files

Don't override child task bounds when rotation changed

In multi-window splits(like app-pair or stage split), task bounds might
be set unexpectedly with override configuration after the device
rotated.

When Task#onConfigurationChanged detected override bounds and display
rotated, it will triverse to override all child tasks' bounds, which
making child won't inherit its parent bounds anymore.

Unify to use Task#setBounds instead of Task#resize when updating
override bounds for rotation and let child inherits its parent bounds
directly.

Also removed duplicate onRootTaskWindowingModeChanged call.

Fix: 178773517
Test: manual check
Test: atest WmTests:TaskTests WMShellUnitTests
Change-Id: I57c3493c6b7a4912ee5e6ed06bf55e976f99c40b
parent 081a843f
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