discord-jadx/app/src/main/java/j0/l/a/q1.java

78 lines
2 KiB
Java
Raw Normal View History

2021-11-08 18:25:28 +00:00
package j0.l.a;
2021-06-27 20:44:35 +00:00
import androidx.recyclerview.widget.RecyclerView;
2022-01-27 00:50:41 +00:00
import b.i.a.f.e.o.f;
2021-11-08 18:25:28 +00:00
import j0.l.a.o1;
2021-06-27 20:44:35 +00:00
import java.util.Objects;
import rx.Producer;
import rx.Subscriber;
2022-03-02 20:59:20 +00:00
/* compiled from: OperatorScan.java */
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
public class q1 extends Subscriber<T> {
2021-12-17 22:03:14 +00:00
public R j;
public final /* synthetic */ Object k;
public final /* synthetic */ o1.b l;
public final /* synthetic */ o1 m;
2021-06-27 20:44:35 +00:00
/* JADX WARN: Multi-variable type inference failed */
public q1(o1 o1Var, Object obj, o1.b bVar) {
2021-12-17 22:03:14 +00:00
this.m = o1Var;
this.k = obj;
this.l = bVar;
2021-06-27 20:44:35 +00:00
this.j = obj;
}
2021-11-08 18:25:28 +00:00
@Override // j0.g
2021-06-27 20:44:35 +00:00
public void onCompleted() {
2021-12-17 22:03:14 +00:00
this.l.onCompleted();
2021-06-27 20:44:35 +00:00
}
2021-11-08 18:25:28 +00:00
@Override // j0.g
2021-06-27 20:44:35 +00:00
public void onError(Throwable th) {
2021-12-17 22:03:14 +00:00
o1.b bVar = this.l;
bVar.r = th;
bVar.q = true;
2021-06-27 20:44:35 +00:00
bVar.b();
}
2022-03-02 20:59:20 +00:00
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Unknown variable types count: 1 */
2021-11-08 18:25:28 +00:00
@Override // j0.g
2022-03-02 20:59:20 +00:00
/*
Code decompiled incorrectly, please refer to instructions dump.
*/
2021-06-27 20:44:35 +00:00
public void onNext(T t) {
try {
2021-12-17 22:03:14 +00:00
?? call = this.m.l.call(this.j, t);
this.j = call;
this.l.onNext(call);
2021-06-27 20:44:35 +00:00
} catch (Throwable th) {
2022-01-27 00:50:41 +00:00
f.p1(th, this, t);
2021-06-27 20:44:35 +00:00
}
}
@Override // rx.Subscriber
public void setProducer(Producer producer) {
long j;
2021-12-17 22:03:14 +00:00
o1.b bVar = this.l;
2021-06-27 20:44:35 +00:00
Objects.requireNonNull(bVar);
Objects.requireNonNull(producer);
2021-12-17 22:03:14 +00:00
synchronized (bVar.o) {
if (bVar.p == null) {
j = bVar.n;
if (j != RecyclerView.FOREVER_NS) {
2021-06-27 20:44:35 +00:00
j--;
}
2022-03-02 20:59:20 +00:00
bVar.n = 0L;
2021-12-17 22:03:14 +00:00
bVar.p = producer;
2021-06-27 20:44:35 +00:00
} else {
throw new IllegalStateException("Can't set more than one Producer!");
}
}
if (j > 0) {
producer.j(j);
}
bVar.b();
}
}