2021-06-27 20:44:35 +00:00
|
|
|
package j0.l.a;
|
|
|
|
|
2021-08-09 22:50:01 +00:00
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
2021-06-27 20:44:35 +00:00
|
|
|
import java.util.Objects;
|
|
|
|
import rx.Subscriber;
|
|
|
|
/* compiled from: OperatorThrottleFirst */
|
|
|
|
public class k2 extends Subscriber<T> {
|
|
|
|
public long i = -1;
|
|
|
|
public final /* synthetic */ Subscriber j;
|
|
|
|
public final /* synthetic */ l2 k;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public k2(l2 l2Var, Subscriber subscriber, Subscriber subscriber2) {
|
|
|
|
super(subscriber);
|
|
|
|
this.k = l2Var;
|
|
|
|
this.j = subscriber2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // j0.g
|
|
|
|
public void onCompleted() {
|
|
|
|
this.j.onCompleted();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // j0.g
|
|
|
|
public void onError(Throwable th) {
|
|
|
|
this.j.onError(th);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // j0.g
|
|
|
|
public void onNext(T t) {
|
|
|
|
Objects.requireNonNull(this.k.j);
|
|
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
|
|
long j = this.i;
|
|
|
|
if (j == -1 || currentTimeMillis < j || currentTimeMillis - j >= this.k.i) {
|
|
|
|
this.i = currentTimeMillis;
|
|
|
|
this.j.onNext(t);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.Subscriber
|
|
|
|
public void onStart() {
|
2021-08-09 22:50:01 +00:00
|
|
|
request(RecyclerView.FOREVER_NS);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|