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

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

Merge "Add empty addTransactionCommittedListener for StubTransaction" into tm-dev

parents 1db2b7ce 0b756667
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ import android.view.InputWindowHandle;
import android.view.Surface;
import android.view.SurfaceControl;

import java.util.concurrent.Executor;

/**
 * Stubbed {@link android.view.SurfaceControl.Transaction} class that can be used when unit
 * testing to avoid calls to native code.
@@ -218,6 +220,12 @@ public class StubTransaction extends SurfaceControl.Transaction {
        return this;
    }

    @Override
    public SurfaceControl.Transaction addTransactionCommittedListener(Executor executor,
            SurfaceControl.TransactionCommittedListener listener) {
        return this;
    }

    @Override
    public SurfaceControl.Transaction syncInputWindows() {
        return this;