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

Commit 7f1aeceb authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Set transition in OneShotRemoteHandler for split screen

* If we don't set the transition, the remote transition/
animation callbacks will never get fired when shell
transition calls startAnimation()

Flag: None
Test: Callbacks come through on launcher side to animate
Bug: 294624260
Change-Id: I33f6686343b2f53df31f4c69ee27693d2df69a45
parent 6885dcad
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -325,8 +325,10 @@ class SplitScreenTransitions {

    void startFullscreenTransition(WindowContainerTransaction wct,
            @Nullable RemoteTransition handler) {
        mTransitions.startTransition(TRANSIT_OPEN, wct,
                new OneShotRemoteHandler(mTransitions.getMainExecutor(), handler));
        OneShotRemoteHandler fullscreenHandler =
                new OneShotRemoteHandler(mTransitions.getMainExecutor(), handler);
        fullscreenHandler.setTransition(mTransitions
                .startTransition(TRANSIT_OPEN, wct, fullscreenHandler));
    }