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

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

Clear the swipe PiP on legacy enter path

We hit the case that auto-enter-pip is trigged in Launcher and no actual
PiP transition is made. Which leads to a broken internal state and
blocks exit PiP if a legacy-enter-pip is made after.

Fixing this by clear the state on the legacy enter path.

Flag: EXEMPT bugfix
Bug: 365300020
Test: N/A added as a fail safe based on analyze
Change-Id: I004f0654f0287f006422d43ebd44d92ec009c1fc
parent 486822e9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,8 @@ public class PipTransition extends PipTransitionController {
            return;
        }

        // NOTE(b/365300020): Legacy enter PiP path, clear the swipe state.
        mPipTransitionState.setInSwipePipToHomeTransition(false);
        final int enterAnimationType = mEnterAnimationType;
        if (enterAnimationType == ANIM_TYPE_ALPHA) {
            startTransaction.setAlpha(leash, 0f);