Add mixed entering pip transition with display change
The case happens when a pip is entering in previous rotation and then display updates. The transition type can be either TRANSIT_CHANGE or TRANSIT_PIP: PipTask CHANGE sb=Rect(0, 0 - 1080, 2340) eb=Rect(0, 0 - 2340, 1080) r=0->3 Display CHANGE sb=Rect(0, 0 - 1080, 2340) eb=Rect(0, 0 - 2340, 1080) r=0->3 The destination pip bounds should be calculated from (2340, 1080). Because a display snapshot should have covered the screen, the pip should go to the end state immediately and only animate the display rotation animation. Bug: 340367710 Test: Enable auto rotation and home rotation. Swipe up (do not release touch) an auto pip activity in portrait. Rotate the device to landscape. Continue the swipe up to enter pip. The display should show a rotation animation and the pip can show on correct landscape position, Change-Id: Ia1e5e8c7edb8c2a078a66b587d5d26a495166de2
Loading
Please register or sign in to comment