Migrated to new JobManager.

This commit is contained in:
Greyson Parrelli
2019-03-28 08:56:35 -07:00
parent 8cf3ba424a
commit 4a3c173adb
162 changed files with 5360 additions and 3574 deletions

View File

@@ -0,0 +1,16 @@
package org.thoughtcrime.securesms.testutil;
import android.support.annotation.NonNull;
import java.util.concurrent.Executor;
/**
* Executor that runs runnables on the same thread {@link #execute(Runnable)} is invoked on.
* Only intended to be used for tests.
*/
public class DirectExecutor implements Executor {
@Override
public void execute(@NonNull Runnable runnable) {
runnable.run();
}
}