discord-jadx/app/src/main/java/c/f/j/p/k.java

59 lines
1.6 KiB
Java

package c.f.j.p;
import c.f.j.j.e;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.facebook.imagepipeline.request.ImageRequest;
/* compiled from: BranchOnSeparateImagesProducer */
public class k implements v0<e> {
public final v0<e> a;
public final v0<e> b;
/* compiled from: BranchOnSeparateImagesProducer */
public class b extends p<e, e> {
/* renamed from: c reason: collision with root package name */
public w0 f480c;
public b(l lVar, w0 w0Var, a aVar) {
super(lVar);
this.f480c = w0Var;
}
@Override // c.f.j.p.p, c.f.j.p.b
public void h(Throwable th) {
k.this.b.b(this.b, this.f480c);
}
@Override // c.f.j.p.b
public void i(Object obj, int i) {
e eVar = (e) obj;
ImageRequest e = this.f480c.e();
boolean e2 = b.e(i);
boolean n1 = AnimatableValueParser.n1(eVar, e.i);
if (eVar != null && (n1 || e.g)) {
if (!e2 || !n1) {
this.b.b(eVar, i & -2);
} else {
this.b.b(eVar, i);
}
}
if (e2 && !n1) {
if (eVar != null) {
eVar.close();
}
k.this.b.b(this.b, this.f480c);
}
}
}
public k(v0<e> v0Var, v0<e> v0Var2) {
this.a = v0Var;
this.b = v0Var2;
}
@Override // c.f.j.p.v0
public void b(l<e> lVar, w0 w0Var) {
this.a.b(new b(lVar, w0Var, null), w0Var);
}
}