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

Commit 54cf794b authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "[PiP2] Save reentry state upon exiting PiP" into main

parents 26bc13d9 f73ae65b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -910,6 +910,11 @@ public class PipTransition extends PipTransitionController implements
                        "Unexpected bundle for " + mPipTransitionState);
                break;
            case PipTransitionState.EXITED_PIP:
                // Save the PiP bounds in case, we re-enter the PiP with the same component.
                float snapFraction = mPipBoundsAlgorithm.getSnapFraction(
                        mPipBoundsState.getBounds());
                mPipBoundsState.saveReentryState(snapFraction);

                mPipTransitionState.setPipTaskToken(null);
                mPipTransitionState.setPinnedTaskLeash(null);
                break;