119 lines
3.7 KiB
Java
119 lines
3.7 KiB
Java
package o;
|
|
|
|
import java.util.Objects;
|
|
|
|
/* renamed from: o.fVA, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C13249fVA<T, R> extends fUX<T, R> {
|
|
private fSS<? super T, ? extends C13166fSn<R>> b;
|
|
|
|
public C13249fVA(InterfaceC13169fSq<T> interfaceC13169fSq, fSS<? super T, ? extends C13166fSn<R>> fss) {
|
|
super(interfaceC13169fSq);
|
|
this.b = fss;
|
|
}
|
|
|
|
@Override // o.AbstractC13163fSk
|
|
public final void subscribeActual(InterfaceC13174fSv<? super R> interfaceC13174fSv) {
|
|
this.c.subscribe(new HBt(interfaceC13174fSv, this.b));
|
|
}
|
|
|
|
/* renamed from: o.fVA$HBt */
|
|
/* loaded from: classes6.dex */
|
|
static final class HBt<T, R> implements InterfaceC13174fSv<T>, fSJ {
|
|
private fSJ a;
|
|
private boolean b;
|
|
private fSS<? super T, ? extends C13166fSn<R>> d;
|
|
private InterfaceC13174fSv<? super R> e;
|
|
|
|
HBt(InterfaceC13174fSv<? super R> interfaceC13174fSv, fSS<? super T, ? extends C13166fSn<R>> fss) {
|
|
this.e = interfaceC13174fSv;
|
|
this.d = fss;
|
|
}
|
|
|
|
@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();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
Throwable th = null;
|
|
if (this.b) {
|
|
if (t instanceof C13166fSn) {
|
|
C13166fSn c13166fSn = (C13166fSn) t;
|
|
if (fYX.b(c13166fSn.a)) {
|
|
Object obj = c13166fSn.a;
|
|
if (fYX.b(obj)) {
|
|
th = fYX.a(obj);
|
|
}
|
|
C13418fZu.c(th);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
try {
|
|
C13166fSn c13166fSn2 = (C13166fSn) Objects.requireNonNull(this.d.a(t), "The selector returned a null Notification");
|
|
if (fYX.b(c13166fSn2.a)) {
|
|
this.a.dispose();
|
|
Object obj2 = c13166fSn2.a;
|
|
if (fYX.b(obj2)) {
|
|
th = fYX.a(obj2);
|
|
}
|
|
onError(th);
|
|
return;
|
|
}
|
|
if (c13166fSn2.a == null) {
|
|
this.a.dispose();
|
|
onComplete();
|
|
return;
|
|
}
|
|
InterfaceC13174fSv<? super R> interfaceC13174fSv = this.e;
|
|
Object obj3 = c13166fSn2.a;
|
|
if (obj3 != null && !fYX.b(obj3)) {
|
|
th = (Object) c13166fSn2.a;
|
|
}
|
|
interfaceC13174fSv.onNext(th);
|
|
} catch (Throwable th2) {
|
|
C13147fSI.c(th2);
|
|
this.a.dispose();
|
|
onError(th2);
|
|
}
|
|
}
|
|
|
|
@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();
|
|
}
|
|
}
|
|
}
|