discord-jadx/app/src/main/java/b/f/j/p/o.java

47 lines
1.5 KiB
Java
Raw Normal View History

2021-12-17 22:01:24 +00:00
package b.f.j.p;
2021-12-17 22:01:24 +00:00
import b.f.j.j.c;
import com.facebook.common.references.CloseableReference;
import com.facebook.imagepipeline.request.ImageRequest;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
/* compiled from: DelayProducer */
public class o implements v0<CloseableReference<c>> {
public final v0<CloseableReference<c>> a;
2021-12-17 22:01:24 +00:00
/* renamed from: b reason: collision with root package name */
public final ScheduledExecutorService f617b;
/* compiled from: DelayProducer */
public class a implements Runnable {
2021-12-17 22:01:24 +00:00
public final /* synthetic */ l j;
public final /* synthetic */ w0 k;
public a(l lVar, w0 w0Var) {
2021-12-17 22:01:24 +00:00
this.j = lVar;
this.k = w0Var;
}
@Override // java.lang.Runnable
public void run() {
2021-12-17 22:01:24 +00:00
o.this.a.b(this.j, this.k);
}
}
public o(v0<CloseableReference<c>> v0Var, ScheduledExecutorService scheduledExecutorService) {
this.a = v0Var;
2021-12-17 22:01:24 +00:00
this.f617b = scheduledExecutorService;
}
2021-12-17 22:01:24 +00:00
@Override // b.f.j.p.v0
public void b(l<CloseableReference<c>> lVar, w0 w0Var) {
ImageRequest e = w0Var.e();
2021-12-17 22:01:24 +00:00
ScheduledExecutorService scheduledExecutorService = this.f617b;
if (scheduledExecutorService != null) {
2021-12-20 08:29:02 +00:00
scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2862s, TimeUnit.MILLISECONDS);
} else {
this.a.b(lVar, w0Var);
}
}
}