54 lines
1.3 KiB
Java
54 lines
1.3 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.os.Handler;
|
|
import c.i.a.f.e.o.d;
|
|
import c.i.a.f.h.l.bc;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
|
|
public abstract class i {
|
|
public static volatile Handler a;
|
|
public final t5 b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final Runnable f1155c;
|
|
public volatile long d;
|
|
|
|
public i(t5 t5Var) {
|
|
Objects.requireNonNull(t5Var, "null reference");
|
|
this.b = t5Var;
|
|
this.f1155c = new k(this, t5Var);
|
|
}
|
|
|
|
public abstract void a();
|
|
|
|
public final void b(long j) {
|
|
c();
|
|
if (j >= 0) {
|
|
Objects.requireNonNull((d) this.b.h());
|
|
this.d = System.currentTimeMillis();
|
|
if (!d().postDelayed(this.f1155c, j)) {
|
|
this.b.g().f.b("Failed to schedule delayed post. time", Long.valueOf(j));
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void c() {
|
|
this.d = 0;
|
|
d().removeCallbacks(this.f1155c);
|
|
}
|
|
|
|
public final Handler d() {
|
|
Handler handler;
|
|
if (a != null) {
|
|
return a;
|
|
}
|
|
synchronized (i.class) {
|
|
if (a == null) {
|
|
a = new bc(this.b.j().getMainLooper());
|
|
}
|
|
handler = a;
|
|
}
|
|
return handler;
|
|
}
|
|
}
|