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

Commit 5f503007 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Do not set crop when removing pip" into main

parents 0f6da5b2 fdef0a8c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -824,12 +824,10 @@ public class PipTransition extends PipTransitionController {
            @NonNull Transitions.TransitionFinishCallback finishCallback,
            @NonNull TaskInfo taskInfo) {
        startTransaction.apply();
        if (info.getChanges().isEmpty()) {
        final TransitionInfo.Change pipChange = findCurrentPipTaskChange(info);
        if (pipChange == null) {
            ProtoLog.e(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
                    "removePipImmediately is called with empty changes");
        } else {
            finishTransaction.setWindowCrop(info.getChanges().get(0).getLeash(),
                    mPipDisplayLayoutState.getDisplayBounds());
                    "removePipImmediately is called without pip change");
        }
        mPipOrganizer.onExitPipFinished(taskInfo);
        finishCallback.onTransitionFinished(null);