package xf;

import android.content.Intent;
import java.util.Objects;
import java.util.concurrent.ThreadPoolExecutor;
import xyz.stream.download.DownloadConstant;
import xyz.stream.download.execute.DownloadTask;

/* JADX INFO: loaded from: classes3.dex */
public final class a extends ThreadPoolExecutor {
    public final void e(DownloadTask downloadTask) {
        int status = downloadTask.getStatus();
        if (status == 45 || status == 47) {
            downloadTask.setFileStatus(42);
            Intent intent = new Intent();
            intent.setAction(downloadTask.getDownLoadInfo().getAction());
            intent.putExtra(DownloadConstant.EXTRA_INTENT_DOWNLOAD, downloadTask.getFileInfo());
            downloadTask.sendBroadcast(intent);
            execute(downloadTask);
            return;
        }
        Objects.toString(downloadTask.getFileInfo());
        if (status == 46) {
            Intent intent2 = new Intent();
            intent2.setAction(downloadTask.getDownLoadInfo().getAction());
            intent2.putExtra(DownloadConstant.EXTRA_INTENT_DOWNLOAD, downloadTask.getFileInfo());
            downloadTask.sendBroadcast(intent2);
        }
    }
}
