52 lines
1.3 KiB
Java
52 lines
1.3 KiB
Java
package j0.l.a;
|
|
|
|
import j0.f;
|
|
import rx.Producer;
|
|
import rx.Subscriber;
|
|
/* compiled from: OnSubscribeRedo */
|
|
public class u extends Subscriber<f<?>> {
|
|
public final /* synthetic */ Subscriber i;
|
|
public final /* synthetic */ v j;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public u(v vVar, Subscriber subscriber, Subscriber subscriber2) {
|
|
super(subscriber);
|
|
this.j = vVar;
|
|
this.i = subscriber2;
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onCompleted() {
|
|
this.i.onCompleted();
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onError(Throwable th) {
|
|
this.i.onError(th);
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onNext(Object obj) {
|
|
f fVar = (f) obj;
|
|
f.a aVar = fVar.b;
|
|
boolean z2 = false;
|
|
if (!(aVar == f.a.OnCompleted) || !this.j.i.k) {
|
|
if (aVar == f.a.OnError) {
|
|
z2 = true;
|
|
}
|
|
if (!z2 || !this.j.i.l) {
|
|
this.i.onNext(fVar);
|
|
} else {
|
|
this.i.onError(fVar.f2833c);
|
|
}
|
|
} else {
|
|
this.i.onCompleted();
|
|
}
|
|
}
|
|
|
|
@Override // rx.Subscriber
|
|
public void setProducer(Producer producer) {
|
|
producer.j(Long.MAX_VALUE);
|
|
}
|
|
}
|