what-the-bank/sources/o/C13285fWJ.java

75 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import io.reactivex.rxjava3.exceptions.CompositeException;
/* renamed from: o.fWJ, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13285fWJ<T> extends fUX<T, T> {
private InterfaceC13193fTg<? super Throwable> b;
public C13285fWJ(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13193fTg<? super Throwable> interfaceC13193fTg) {
super(interfaceC13169fSq);
this.b = interfaceC13193fTg;
}
@Override // o.AbstractC13163fSk
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
this.c.subscribe(new Sts(interfaceC13174fSv, this.b));
}
/* renamed from: o.fWJ$Sts */
/* loaded from: classes6.dex */
public static final class Sts<T> implements InterfaceC13174fSv<T>, fSJ {
private InterfaceC13193fTg<? super Throwable> a;
private fSJ b;
private InterfaceC13174fSv<? super T> d;
public Sts(InterfaceC13174fSv<? super T> interfaceC13174fSv, InterfaceC13193fTg<? super Throwable> interfaceC13193fTg) {
this.d = interfaceC13174fSv;
this.a = interfaceC13193fTg;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.b, fsj)) {
this.b = fsj;
this.d.onSubscribe(this);
}
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
this.d.onNext(t);
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
try {
if (this.a.a(th)) {
this.d.onComplete();
} else {
this.d.onError(th);
}
} catch (Throwable th2) {
C13147fSI.c(th2);
this.d.onError(new CompositeException(th, th2));
}
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
this.d.onComplete();
}
@Override // o.fSJ
public final void dispose() {
this.b.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.b.isDisposed();
}
}
}