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

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

Dismiss split-screen when PiP is part of OPEN

When a transition with type other than TRANSIT_PIP arrives
DefaultMixedHandler, make DefaultMixedHandler can recognize the PiP
change in it, and follow the same path as swiping Split-Screen to PiP.

Flag: com.android.wm.shell.enable_pip2
Bug: 442285073
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/3BPzQbuvE49PmCmAysQK7
Test: Launch app over split-screen with pip-able app, see Video
Change-Id: Iaadb0f11df54eb7fa658850a990ea9c5ccd05654
parent 0c5b5043
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -449,6 +449,11 @@ public class PipTransition extends PipTransitionController implements
        finishTransition();
    }

    @Override
    public boolean requestHasPipEnter(@NonNull TransitionRequestInfo request) {
        return request.getType() == TRANSIT_PIP || request.getPipChange() != null;
    }

    @Override
    public boolean isEnteringPip(@NonNull TransitionInfo.Change change,
            @WindowManager.TransitionType int transitType) {