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

Commit d639934e authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "Remove the state when forcefully remove overlay" into main

parents d8bb4707 bfd85859
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1980,12 +1980,6 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
            }
            clearContentOverlay();
        }
        if (mPipTransitionState.getTransitionState() == PipTransitionState.UNDEFINED) {
            // Avoid double removal, which is fatal.
            ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
                    "%s: trying to remove overlay (%s) while in UNDEFINED state", TAG, surface);
            return;
        }
        if (surface == null || !surface.isValid()) {
            ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
                    "%s: trying to remove invalid content overlay (%s)", TAG, surface);