2021-11-08 18:25:28 +00:00
|
|
|
package j0.l.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-08-09 22:50:01 +00:00
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
2021-06-27 20:44:35 +00:00
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
|
import java.util.concurrent.atomic.AtomicLong;
|
|
|
|
import rx.Observable;
|
|
|
|
import rx.Producer;
|
|
|
|
import rx.Scheduler;
|
|
|
|
import rx.Subscriber;
|
|
|
|
import rx.functions.Action0;
|
2022-03-02 20:59:20 +00:00
|
|
|
/* compiled from: OnSubscribeRedo.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public class w implements Action0 {
|
2021-12-17 22:03:14 +00:00
|
|
|
public final /* synthetic */ Observable j;
|
|
|
|
public final /* synthetic */ Subscriber k;
|
|
|
|
public final /* synthetic */ AtomicLong l;
|
|
|
|
public final /* synthetic */ Scheduler.Worker m;
|
|
|
|
public final /* synthetic */ Action0 n;
|
|
|
|
public final /* synthetic */ AtomicBoolean o;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* compiled from: OnSubscribeRedo.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public class a extends Subscriber<Object> {
|
|
|
|
public a(Subscriber subscriber) {
|
|
|
|
super(subscriber);
|
|
|
|
}
|
|
|
|
|
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
|
|
|
w.this.k.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
|
|
|
w.this.k.onError(th);
|
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 onNext(Object obj) {
|
2021-12-17 22:03:14 +00:00
|
|
|
if (w.this.k.isUnsubscribed()) {
|
2021-06-27 20:44:35 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-17 22:03:14 +00:00
|
|
|
if (w.this.l.get() > 0) {
|
2021-06-27 20:44:35 +00:00
|
|
|
w wVar = w.this;
|
2021-12-17 22:03:14 +00:00
|
|
|
wVar.m.a(wVar.n);
|
2021-06-27 20:44:35 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-12-17 22:03:14 +00:00
|
|
|
w.this.o.compareAndSet(false, true);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.Subscriber
|
|
|
|
public void setProducer(Producer producer) {
|
2021-08-09 22:50:01 +00:00
|
|
|
producer.j(RecyclerView.FOREVER_NS);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public w(y yVar, Observable observable, Subscriber subscriber, AtomicLong atomicLong, Scheduler.Worker worker, Action0 action0, AtomicBoolean atomicBoolean) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.j = observable;
|
|
|
|
this.k = subscriber;
|
|
|
|
this.l = atomicLong;
|
|
|
|
this.m = worker;
|
|
|
|
this.n = action0;
|
|
|
|
this.o = atomicBoolean;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.functions.Action0
|
|
|
|
public void call() {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.j.i0(new a(this.k));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|