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

Commit bf982054 authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Finish incomplete merge"

parents c31ec3d5 94c1b01e
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();