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

Commit c7ca2e39 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Remove unused postStartTransactionCallbacks

It is leftover of legacy edge extension (commit e2c70e16).

Bug: 398776229
Flag: EXEMPT removing unused code
Test: WMShellUnitTests
Change-Id: Id9e48fe66e1c4339b97ad42f3338749a05a2cb76
parent a65d9063
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -121,8 +121,6 @@ import com.android.wm.shell.shared.animation.Interpolators;
import com.android.wm.shell.sysui.ShellInit;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;

/** The default handler that handles anything not already handled. */
public class DefaultTransitionHandler implements Transitions.TransitionHandler {
@@ -362,9 +360,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
            finishCallback.onTransitionFinished(null /* wct */);
        };

        final List<Consumer<SurfaceControl.Transaction>> postStartTransactionCallbacks =
                new ArrayList<>();

        @ColorInt int backgroundColorForTransition = 0;
        final int wallpaperTransit = getWallpaperTransitType(info);
        int animatingDisplayId = Integer.MIN_VALUE;
@@ -626,16 +621,6 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
                    finishTransaction);
        }

        if (postStartTransactionCallbacks.size() > 0) {
            // postStartTransactionCallbacks require that the start transaction is already
            // applied to run otherwise they may result in flickers and UI inconsistencies.
            startTransaction.apply(true /* sync */);
            // startTransaction is empty now, so fill it with the edge-extension setup
            for (Consumer<SurfaceControl.Transaction> postStartTransactionCallback :
                    postStartTransactionCallbacks) {
                postStartTransactionCallback.accept(startTransaction);
            }
        }
        startTransaction.apply();

        // now start animations. they are started on another thread, so we have to post them