95 lines
2.7 KiB
Java
95 lines
2.7 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Objects;
|
||
|
|
||
|
/* renamed from: o.fVk, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C13267fVk<T, U> extends fUX<T, U> {
|
||
|
private InterfaceC13189fTc<? extends U> b;
|
||
|
private fSK<? super U, ? super T> e;
|
||
|
|
||
|
public C13267fVk(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13189fTc<? extends U> interfaceC13189fTc, fSK<? super U, ? super T> fsk) {
|
||
|
super(interfaceC13169fSq);
|
||
|
this.b = interfaceC13189fTc;
|
||
|
this.e = fsk;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC13163fSk
|
||
|
public final void subscribeActual(InterfaceC13174fSv<? super U> interfaceC13174fSv) {
|
||
|
try {
|
||
|
this.c.subscribe(new RVV(interfaceC13174fSv, Objects.requireNonNull(this.b.d(), "The initialSupplier returned a null value"), this.e));
|
||
|
} catch (Throwable th) {
|
||
|
C13147fSI.c(th);
|
||
|
EnumC13195fTi.a(th, interfaceC13174fSv);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.fVk$RVV */
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class RVV<T, U> implements InterfaceC13174fSv<T>, fSJ {
|
||
|
private fSJ a;
|
||
|
private fSK<? super U, ? super T> b;
|
||
|
private boolean c;
|
||
|
private InterfaceC13174fSv<? super U> d;
|
||
|
private U e;
|
||
|
|
||
|
RVV(InterfaceC13174fSv<? super U> interfaceC13174fSv, U u, fSK<? super U, ? super T> fsk) {
|
||
|
this.d = interfaceC13174fSv;
|
||
|
this.b = fsk;
|
||
|
this.e = u;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onSubscribe(fSJ fsj) {
|
||
|
if (EnumC13192fTf.d(this.a, fsj)) {
|
||
|
this.a = fsj;
|
||
|
this.d.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.c) {
|
||
|
return;
|
||
|
}
|
||
|
try {
|
||
|
this.b.b(this.e, t);
|
||
|
} catch (Throwable th) {
|
||
|
C13147fSI.c(th);
|
||
|
this.a.dispose();
|
||
|
onError(th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
if (this.c) {
|
||
|
C13418fZu.c(th);
|
||
|
} else {
|
||
|
this.c = true;
|
||
|
this.d.onError(th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
if (this.c) {
|
||
|
return;
|
||
|
}
|
||
|
this.c = true;
|
||
|
this.d.onNext(this.e);
|
||
|
this.d.onComplete();
|
||
|
}
|
||
|
}
|
||
|
}
|