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

Commit f0ced4fc authored by Hongwei Wang's avatar Hongwei Wang
Browse files

[PiP2] Make sure round corner is applied

Make sure round corner is applied in the following cases

- Screen rotation
- Fold and unfold
- Enter PiP from landscape to portrait, in button navigation mode

Fixed the missing round corner by calling syncPipSurfaceState for
unhandled transition in PipTransition#startAnimation

Flag: com.android.wm.shell.enable_pip2
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fiwqaDEnoUGMrYlVunaGAn
Bug: 385152045
Test: Check the corner radius for the given CUJs, see also the video
Change-Id: I17ab0e97d27f2113347e12b8def4ffa0d9e5b228
parent 0a400b05
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -300,6 +300,9 @@ public class PipTransition extends PipTransitionController implements
            mPipTransitionState.setState(PipTransitionState.EXITING_PIP);
            return startRemoveAnimation(info, startTransaction, finishTransaction, finishCallback);
        }
        // For any unhandled transition, make sure the PiP surface is properly updated,
        // i.e. corner and shadow radius.
        syncPipSurfaceState(info, startTransaction, finishTransaction);
        return false;
    }