Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 885f0613 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 525ddc37
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