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

Commit fae4039c authored by Mateusz Cicheński's avatar Mateusz Cicheński Committed by Android (Google) Code Review
Browse files

Merge "If leash is null it's not a valid state to remove PiP" into udc-dev

parents bfd652d0 428e04bb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -623,11 +623,11 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
     * Removes PiP immediately.
     */
    public void removePip() {
        if (!mPipTransitionState.isInPip() || mToken == null) {
        if (!mPipTransitionState.isInPip() || mToken == null || mLeash == null) {
            ProtoLog.wtf(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
                    "%s: Not allowed to removePip in current state"
                            + " mState=%d mToken=%s", TAG, mPipTransitionState.getTransitionState(),
                    mToken);
                            + " mState=%d mToken=%s mLeash=%s", TAG,
                    mPipTransitionState.getTransitionState(), mToken, mLeash);
            return;
        }