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

Commit 94c1b01e authored by Evan Rosky's avatar Evan Rosky
Browse files

Finish incomplete merge

Bug: 177440160
Test: builds
Change-Id: Idfb134838e44a72e2c1eef31740e0e2eea47b6b8
parent f2a23c72
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.wm.shell;

import android.os.Looper;

import com.android.wm.shell.common.ShellExecutor;

import java.util.ArrayList;
@@ -42,6 +44,16 @@ public class TestShellExecutor implements ShellExecutor {
        mRunnables.remove(r);
    }

    @Override
    public boolean hasCallback(Runnable r) {
        return !mRunnables.isEmpty();
    }

    @Override
    public Looper getLooper() {
        return null;
    }

    public void flushAll() {
        for (int i = mRunnables.size() - 1; i >= 0; --i) {
            mRunnables.get(i).run();