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
Loading
Please register or sign in to comment