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

100 lines
2.9 KiB
Java
Raw Normal View History

2021-12-17 21:59:34 +00:00
package b.f.j.p;
2021-07-24 02:37:17 +00:00
2021-12-17 21:59:34 +00:00
import b.f.i.c;
import b.f.j.c.d;
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 b.f.j.r.b;
2021-07-24 02:37:17 +00:00
import com.facebook.cache.common.CacheKey;
import com.facebook.imagepipeline.request.ImageRequest;
/* compiled from: EncodedProbeProducer */
public class w implements v0<e> {
public final f a;
2021-12-17 21:59:34 +00:00
/* renamed from: b reason: collision with root package name */
public final f f627b;
public final i c;
2021-07-24 02:37:17 +00:00
public final v0<e> d;
public final d<CacheKey> e;
public final d<CacheKey> f;
/* compiled from: EncodedProbeProducer */
public static class a extends p<e, e> {
2021-12-17 21:59:34 +00:00
public final w0 c;
2021-07-24 02:37:17 +00:00
public final f d;
public final f e;
public final i f;
public final d<CacheKey> g;
public final d<CacheKey> h;
public a(l<e> lVar, w0 w0Var, f fVar, f fVar2, i iVar, d<CacheKey> dVar, d<CacheKey> dVar2) {
super(lVar);
2021-12-17 21:59:34 +00:00
this.c = w0Var;
2021-07-24 02:37:17 +00:00
this.d = fVar;
this.e = fVar2;
this.f = iVar;
this.g = dVar;
this.h = dVar2;
}
/* JADX INFO: finally extract failed */
2021-12-17 21:59:34 +00:00
@Override // b.f.j.p.b
2021-07-24 02:37:17 +00:00
public void i(Object obj, int i) {
e eVar = (e) obj;
try {
b.b();
if (!b.f(i) && eVar != null && !b.l(i, 10)) {
2021-11-05 06:48:17 +00:00
eVar.u();
2021-12-02 18:53:44 +00:00
if (eVar.l != c.a) {
2021-12-17 21:59:34 +00:00
ImageRequest e = this.c.e();
CacheKey b2 = ((n) this.f).b(e, this.c.b());
this.g.a(b2);
if (this.c.l("origin").equals("memory_encoded")) {
if (!this.h.b(b2)) {
2021-12-20 07:27:17 +00:00
(e.f2861b == ImageRequest.b.SMALL ? this.e : this.d).c(b2);
2021-12-17 21:59:34 +00:00
this.h.a(b2);
2021-07-24 02:37:17 +00:00
}
2021-12-17 21:59:34 +00:00
} else if (this.c.l("origin").equals("disk")) {
this.h.a(b2);
2021-07-24 02:37:17 +00:00
}
2021-12-17 21:59:34 +00:00
this.f619b.b(eVar, i);
2021-07-24 02:37:17 +00:00
b.b();
}
}
2021-12-17 21:59:34 +00:00
this.f619b.b(eVar, i);
2021-07-24 02:37:17 +00:00
b.b();
} catch (Throwable th) {
b.b();
throw th;
}
}
}
public w(f fVar, f fVar2, i iVar, d dVar, d dVar2, v0<e> v0Var) {
this.a = fVar;
2021-12-17 21:59:34 +00:00
this.f627b = fVar2;
this.c = iVar;
2021-07-24 02:37:17 +00:00
this.e = dVar;
this.f = dVar2;
this.d = v0Var;
}
2021-12-17 21:59:34 +00:00
@Override // b.f.j.p.v0
2021-07-24 02:37:17 +00:00
public void b(l<e> lVar, w0 w0Var) {
try {
b.b();
y0 o = w0Var.o();
o.e(w0Var, "EncodedProbeProducer");
2021-12-17 21:59:34 +00:00
a aVar = new a(lVar, w0Var, this.a, this.f627b, this.c, this.e, this.f);
2021-07-24 02:37:17 +00:00
o.j(w0Var, "EncodedProbeProducer", null);
b.b();
this.d.b(aVar, w0Var);
b.b();
} finally {
b.b();
}
}
}