{
@RealObject
- private AsyncTask realAsyncTask;
- private final FutureTask execute(final P... params) {
status = AsyncTask.Status.RUNNING;
getBridge().onPreExecute();
@@ -102,7 +102,7 @@ public void run() {
}
@Implementation
- public AsyncTask executeOnExecutor(Executor executor, P... params) {
status = AsyncTask.Status.RUNNING;
getBridge().onPreExecute();
@@ -123,7 +123,7 @@ public AsyncTask.Status getStatus() {
}
@Implementation
- public void publishProgress(final Progress... values) {
+ public void publishProgress(final X... values) {
ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() {
@Override
public void run() {
@@ -132,15 +132,15 @@ public void run() {
});
}
- private ShadowAsyncTaskBridge getBridge() {
return new ShadowAsyncTaskBridge<>(realAsyncTask);
}
- private final class BackgroundWorker implements Callable