Skip to content
Commit 98f7b6ea authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Animate PiP with considering next rotation

- Make sure that fixed rotation state is set in
  PipTransition#startEnterAnimation according to the change info.
- Call setEndFixedRotation if the display rotation will be changed
  by a different task.

Also remove a dead code in handleSwipePipToHomeTransition which
was fixed by commit 19da8aeb.


Bug: 285089607
Test: Case 1: Click notification which starts an activity in
              a different orientation with remote animation
              and make the pausing app enter PiP at the same time.
      Case 2: A task contain 2 activities, its top activity enters
              PiP in a new task from landscape. And the next activity
              in the task is portrait.

Change-Id: Ibcf2bb90a0abd0c100d48aa27f1b7ab93e8d78ec
parent f4f5ce43
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