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

88 lines
2.5 KiB
Java

package o;
/* renamed from: o.fXy, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13351fXy<T> extends fUX<T, T> {
private InterfaceC13193fTg<? super T> b;
public C13351fXy(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13193fTg<? super T> 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.fXy$Sts */
/* loaded from: classes6.dex */
static final class Sts<T> implements InterfaceC13174fSv<T>, fSJ {
private InterfaceC13193fTg<? super T> a;
private fSJ b;
private boolean d;
private InterfaceC13174fSv<? super T> e;
Sts(InterfaceC13174fSv<? super T> interfaceC13174fSv, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
this.e = interfaceC13174fSv;
this.a = interfaceC13193fTg;
}
@Override // o.InterfaceC13174fSv
public final void onSubscribe(fSJ fsj) {
if (EnumC13192fTf.d(this.b, fsj)) {
this.b = fsj;
this.e.onSubscribe(this);
}
}
@Override // o.fSJ
public final void dispose() {
this.b.dispose();
}
@Override // o.fSJ
public final boolean isDisposed() {
return this.b.isDisposed();
}
@Override // o.InterfaceC13174fSv
public final void onNext(T t) {
if (this.d) {
return;
}
this.e.onNext(t);
try {
if (this.a.a(t)) {
this.d = true;
this.b.dispose();
this.e.onComplete();
}
} catch (Throwable th) {
C13147fSI.c(th);
this.b.dispose();
onError(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (!this.d) {
this.d = true;
this.e.onError(th);
} else {
C13418fZu.c(th);
}
}
@Override // o.InterfaceC13174fSv
public final void onComplete() {
if (this.d) {
return;
}
this.d = true;
this.e.onComplete();
}
}
}