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

89 lines
2.5 KiB
Java
Raw Permalink Normal View History

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