85 lines
2.4 KiB
Java
85 lines
2.4 KiB
Java
package o;
|
|
|
|
import android.os.Handler;
|
|
import com.android.volley.VolleyError;
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* renamed from: o.fkX, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C13978fkX implements qNX {
|
|
private final Executor a;
|
|
|
|
public C13978fkX(Handler handler) {
|
|
this.a = new Executor(this, handler) { // from class: o.fkX.2
|
|
private Handler c;
|
|
private C13978fkX d;
|
|
|
|
{
|
|
this.d = this;
|
|
this.c = handler;
|
|
}
|
|
|
|
@Override // java.util.concurrent.Executor
|
|
public final void execute(Runnable runnable) {
|
|
this.c.post(runnable);
|
|
}
|
|
};
|
|
}
|
|
|
|
@Override // o.qNX
|
|
public final void d(HJP<?> hjp, C15788ibz<?> c15788ibz, Runnable runnable) {
|
|
hjp.markDelivered();
|
|
hjp.addMarker("post-response");
|
|
this.a.execute(new HBt(hjp, c15788ibz, runnable));
|
|
}
|
|
|
|
@Override // o.qNX
|
|
public final void e(HJP<?> hjp, VolleyError volleyError) {
|
|
hjp.addMarker("post-error");
|
|
this.a.execute(new HBt(hjp, C15788ibz.b(volleyError), null));
|
|
}
|
|
|
|
/* renamed from: o.fkX$HBt */
|
|
/* loaded from: classes.dex */
|
|
static class HBt implements Runnable {
|
|
private final Runnable a;
|
|
private final HJP b;
|
|
private final C15788ibz e;
|
|
|
|
public HBt(HJP hjp, C15788ibz c15788ibz, Runnable runnable) {
|
|
this.b = hjp;
|
|
this.e = c15788ibz;
|
|
this.a = runnable;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (this.b.isCanceled()) {
|
|
this.b.finish("canceled-at-delivery");
|
|
return;
|
|
}
|
|
if (this.e.d == null) {
|
|
this.b.deliverResponse(this.e.c);
|
|
} else {
|
|
this.b.deliverError(this.e.d);
|
|
}
|
|
if (this.e.b) {
|
|
this.b.addMarker("intermediate-response");
|
|
} else {
|
|
this.b.finish("done");
|
|
}
|
|
Runnable runnable = this.a;
|
|
if (runnable != null) {
|
|
runnable.run();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.qNX
|
|
public final void e(HJP<?> hjp, C15788ibz<?> c15788ibz) {
|
|
hjp.markDelivered();
|
|
hjp.addMarker("post-response");
|
|
this.a.execute(new HBt(hjp, c15788ibz, null));
|
|
}
|
|
}
|