77 lines
2.3 KiB
Java
77 lines
2.3 KiB
Java
|
package o;
|
||
|
|
||
|
import io.reactivex.rxjava3.exceptions.CompositeException;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class fWG<T> extends fUX<T, T> {
|
||
|
private fSS<? super Throwable, ? extends T> a;
|
||
|
|
||
|
public fWG(InterfaceC13169fSq<T> interfaceC13169fSq, fSS<? super Throwable, ? extends T> fss) {
|
||
|
super(interfaceC13169fSq);
|
||
|
this.a = fss;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC13163fSk
|
||
|
public final void subscribeActual(InterfaceC13174fSv<? super T> interfaceC13174fSv) {
|
||
|
this.c.subscribe(new IeS(interfaceC13174fSv, this.a));
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class IeS<T> implements InterfaceC13174fSv<T>, fSJ {
|
||
|
private fSJ a;
|
||
|
private InterfaceC13174fSv<? super T> c;
|
||
|
private fSS<? super Throwable, ? extends T> d;
|
||
|
|
||
|
IeS(InterfaceC13174fSv<? super T> interfaceC13174fSv, fSS<? super Throwable, ? extends T> fss) {
|
||
|
this.c = interfaceC13174fSv;
|
||
|
this.d = fss;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onSubscribe(fSJ fsj) {
|
||
|
if (EnumC13192fTf.d(this.a, fsj)) {
|
||
|
this.a = fsj;
|
||
|
this.c.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) {
|
||
|
this.c.onNext(t);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onError(Throwable th) {
|
||
|
try {
|
||
|
T a = this.d.a(th);
|
||
|
if (a == null) {
|
||
|
NullPointerException nullPointerException = new NullPointerException("The supplied value is null");
|
||
|
nullPointerException.initCause(th);
|
||
|
this.c.onError(nullPointerException);
|
||
|
} else {
|
||
|
this.c.onNext(a);
|
||
|
this.c.onComplete();
|
||
|
}
|
||
|
} catch (Throwable th2) {
|
||
|
C13147fSI.c(th2);
|
||
|
this.c.onError(new CompositeException(th, th2));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC13174fSv
|
||
|
public final void onComplete() {
|
||
|
this.c.onComplete();
|
||
|
}
|
||
|
}
|
||
|
}
|