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

Re-show faded PiP when fixed rotation is finished

PiP will be faded out if there is orientation change when
switching app (onFixedRotationStarted), and then fade in with
display transition from startAnimation -> fadeExistingPip.

But if there is no app switch, such as entering recent and
then return to current app, the signal to re-show the PiP was
missed in shell transition. So still listen to
onFixedRotationFinished and restore the visibility of PiP
when the transition is idle.

Bug: 262835608
Test: Enter PiP in portrait. Launch a rotatable app.
      Rotate screen to landscape.
      Either:
       - Swipe up and down to cancel.
       - Swipe up to enter recent.
         Click the current app to return.
      Though the PiP will be fade out during swipe-up gesture.
      After return to current app, the PiP should be still visible.

Change-Id: Ieb47eceaa5e8e7ff710a0fd6ab8319d1a3463985
parent 9338d0cc
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