78 lines
2.0 KiB
Java
78 lines
2.0 KiB
Java
package j0.l.a;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import b.i.a.f.e.o.f;
|
|
import j0.l.a.o1;
|
|
import java.util.Objects;
|
|
import rx.Producer;
|
|
import rx.Subscriber;
|
|
/* compiled from: OperatorScan.java */
|
|
/* loaded from: classes3.dex */
|
|
public class q1 extends Subscriber<T> {
|
|
public R j;
|
|
public final /* synthetic */ Object k;
|
|
public final /* synthetic */ o1.b l;
|
|
public final /* synthetic */ o1 m;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public q1(o1 o1Var, Object obj, o1.b bVar) {
|
|
this.m = o1Var;
|
|
this.k = obj;
|
|
this.l = bVar;
|
|
this.j = obj;
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onCompleted() {
|
|
this.l.onCompleted();
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onError(Throwable th) {
|
|
o1.b bVar = this.l;
|
|
bVar.r = th;
|
|
bVar.q = true;
|
|
bVar.b();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Unknown variable types count: 1 */
|
|
@Override // j0.g
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
*/
|
|
public void onNext(T t) {
|
|
try {
|
|
?? call = this.m.l.call(this.j, t);
|
|
this.j = call;
|
|
this.l.onNext(call);
|
|
} catch (Throwable th) {
|
|
f.p1(th, this, t);
|
|
}
|
|
}
|
|
|
|
@Override // rx.Subscriber
|
|
public void setProducer(Producer producer) {
|
|
long j;
|
|
o1.b bVar = this.l;
|
|
Objects.requireNonNull(bVar);
|
|
Objects.requireNonNull(producer);
|
|
synchronized (bVar.o) {
|
|
if (bVar.p == null) {
|
|
j = bVar.n;
|
|
if (j != RecyclerView.FOREVER_NS) {
|
|
j--;
|
|
}
|
|
bVar.n = 0L;
|
|
bVar.p = producer;
|
|
} else {
|
|
throw new IllegalStateException("Can't set more than one Producer!");
|
|
}
|
|
}
|
|
if (j > 0) {
|
|
producer.j(j);
|
|
}
|
|
bVar.b();
|
|
}
|
|
}
|