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

Commit 84297ac2 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Add empty addTransactionCommittedListener for StubTransaction" into tm-dev am: f2fe0dbe

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17046200

Change-Id: Iead973864698fafda07608fc51d8490af1fb3d0e
parents 8297bbe5 f2fe0dbe
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;