Use parent bounds for fixed rotation activity end bounds
This is similar to what legacy transition did. Activity bounds may not be the proper region to animate because the letterbox is also a part of activity. And because fixed rotation applies to activity level, this doesn't need to let shell to know the info about fixed rotation, just animate as in the same rotation. Also 1. Since commit 6dcb756b, inTransition() also includes parent, which doesn't match the usage of collectForDisplayChange(), e.g. all container under changing display will be in transition. So it should only check if itself is collecting, to avoid missing some windows that need to be in sync group. 2. The rotation-leash doesn't have color or shadow effect, so it can be a simple ContainerLayer. Bug: 223397500 Test: atest TransitionTests#testTransitionBounds Test: adb shell setprop persist.wm.debug.shell_transit 1; reboot Launch a landscape activity, and it launches a portrait activity in new task. The animation should not be cropped. Change-Id: I9ca872d62ab82fd326d20fc069d76cfd50090cf8
Loading
Please register or sign in to comment