discord-jadx/app/src/main/java/b/f/j/p/t.java

78 lines
2.2 KiB
Java

package b.f.j.p;
import b.f.i.c;
import b.f.j.c.f;
import b.f.j.c.i;
import b.f.j.c.n;
import b.f.j.j.e;
import com.facebook.cache.common.CacheKey;
import com.facebook.imagepipeline.request.ImageRequest;
/* compiled from: DiskCacheWriteProducer */
public class t implements v0<e> {
public final f a;
/* renamed from: b reason: collision with root package name */
public final f f625b;
public final i c;
public final v0<e> d;
/* compiled from: DiskCacheWriteProducer */
public static class b extends p<e, e> {
public final w0 c;
public final f d;
public final f e;
public final i f;
public b(l lVar, w0 w0Var, f fVar, f fVar2, i iVar, a aVar) {
super(lVar);
this.c = w0Var;
this.d = fVar;
this.e = fVar2;
this.f = iVar;
}
@Override // b.f.j.p.b
public void i(Object obj, int i) {
e eVar = (e) obj;
this.c.o().e(this.c, "DiskCacheWriteProducer");
if (!b.f(i) && eVar != null && !b.l(i, 10)) {
eVar.u();
if (eVar.l != c.a) {
ImageRequest e = this.c.e();
CacheKey b2 = ((n) this.f).b(e, this.c.b());
if (e.f2861b == ImageRequest.b.SMALL) {
this.e.f(b2, eVar);
} else {
this.d.f(b2, eVar);
}
this.c.o().j(this.c, "DiskCacheWriteProducer", null);
this.f619b.b(eVar, i);
return;
}
}
this.c.o().j(this.c, "DiskCacheWriteProducer", null);
this.f619b.b(eVar, i);
}
}
public t(f fVar, f fVar2, i iVar, v0<e> v0Var) {
this.a = fVar;
this.f625b = fVar2;
this.c = iVar;
this.d = v0Var;
}
@Override // b.f.j.p.v0
public void b(l<e> lVar, w0 w0Var) {
if (w0Var.q().g() >= ImageRequest.c.DISK_CACHE.g()) {
w0Var.i("disk", "nil-result_write");
lVar.b(null, 1);
return;
}
if (w0Var.e().n) {
lVar = new b(lVar, w0Var, this.a, this.f625b, this.c, null);
}
this.d.b(lVar, w0Var);
}
}