- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
83 lines
1.8 KiB
Java
83 lines
1.8 KiB
Java
package com.mbridge.msdk.e.a;
|
|
|
|
import android.os.CountDownTimer;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class b {
|
|
private com.mbridge.msdk.e.a.a a;
|
|
private long b;
|
|
private a c;
|
|
private long d = 0;
|
|
|
|
public final b a(long j) {
|
|
if (j < 0) {
|
|
j = 1000;
|
|
}
|
|
this.b = j;
|
|
return this;
|
|
}
|
|
|
|
public final b a(com.mbridge.msdk.e.a.a aVar) {
|
|
this.a = aVar;
|
|
return this;
|
|
}
|
|
|
|
public final b b(long j) {
|
|
this.d = j;
|
|
return this;
|
|
}
|
|
|
|
public final void a() {
|
|
a aVar = this.c;
|
|
if (aVar != null) {
|
|
aVar.cancel();
|
|
this.c = null;
|
|
}
|
|
}
|
|
|
|
public static class a extends CountDownTimer {
|
|
private com.mbridge.msdk.e.a.a a;
|
|
|
|
public final void a(com.mbridge.msdk.e.a.a aVar) {
|
|
this.a = aVar;
|
|
}
|
|
|
|
public a(long j, long j2) {
|
|
super(j, j2);
|
|
}
|
|
|
|
@Override // android.os.CountDownTimer
|
|
public final void onTick(long j) {
|
|
com.mbridge.msdk.e.a.a aVar = this.a;
|
|
if (aVar != null) {
|
|
aVar.onTick(j);
|
|
}
|
|
}
|
|
|
|
@Override // android.os.CountDownTimer
|
|
public final void onFinish() {
|
|
com.mbridge.msdk.e.a.a aVar = this.a;
|
|
if (aVar != null) {
|
|
aVar.onFinish();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void b() {
|
|
a aVar = this.c;
|
|
if (aVar == null) {
|
|
if (aVar != null) {
|
|
aVar.cancel();
|
|
this.c = null;
|
|
}
|
|
if (this.b <= 0) {
|
|
this.b = this.d + 1000;
|
|
}
|
|
a aVar2 = new a(this.d, this.b);
|
|
this.c = aVar2;
|
|
aVar2.a(this.a);
|
|
}
|
|
this.c.start();
|
|
}
|
|
}
|