GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.adview.activity.b;
import android.os.SystemClock;
import com.applovin.adview.AppLovinFullscreenActivity;
import com.applovin.impl.sdk.k;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
public class b extends a {
private final com.applovin.impl.adview.activity.a.b r;
private com.applovin.impl.sdk.utils.d s;
private long t;
private AtomicBoolean u;
public b(com.applovin.impl.sdk.a.g gVar, AppLovinFullscreenActivity appLovinFullscreenActivity, k kVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
super(gVar, appLovinFullscreenActivity, kVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
this.r = new com.applovin.impl.adview.activity.a.b(this.f403a, this.d, this.b);
this.u = new AtomicBoolean();
}
private long c() {
if (!(this.f403a instanceof com.applovin.impl.sdk.a.a)) {
return 0L;
}
float l = ((com.applovin.impl.sdk.a.a) this.f403a).l();
if (l <= 0.0f) {
l = (float) this.f403a.u();
}
double secondsToMillisLong = Utils.secondsToMillisLong(l);
double Q = this.f403a.Q();
Double.isNaN(Q);
Double.isNaN(secondsToMillisLong);
return (long) (secondsToMillisLong * (Q / 100.0d));
}
@Override
public void a() {
}
@Override
public void b() {
}
@Override
public void d() {
this.r.a(this.g, this.f);
a(false);
this.f.renderAd(this.f403a);
a("javascript:al_onPoststitialShow();", this.f403a.R());
if (r()) {
long c = c();
this.t = c;
if (c > 0) {
this.c.b("InterActivityV2", "Scheduling timer for ad fully watched in " + this.t + "ms...");
this.s = com.applovin.impl.sdk.utils.d.a(this.t, this.b, new Runnable() {
@Override
public void run() {
b.this.c.b("InterActivityV2", "Marking ad as fully watched");
b.this.u.set(true);
}
});
}
}
if (this.g != null) {
if (this.f403a.u() >= 0) {
a(this.g, this.f403a.u(), new Runnable() {
@Override
public void run() {
b.this.i = SystemClock.elapsedRealtime();
}
});
} else {
this.g.setVisibility(0);
}
}
s();
super.b(t());
}
@Override
public void g() {
l();
com.applovin.impl.sdk.utils.d dVar = this.s;
if (dVar != null) {
dVar.a();
this.s = null;
}
super.g();
}
@Override
protected void l() {
com.applovin.impl.sdk.utils.d dVar;
boolean p = p();
int i = 100;
if (r()) {
if (!p && (dVar = this.s) != null) {
double b = this.t - dVar.b();
double d = this.t;
Double.isNaN(b);
Double.isNaN(d);
i = (int) Math.min(100.0d, (b / d) * 100.0d);
}
this.c.b("InterActivityV2", "Ad engaged at " + i + "%");
}
super.a(i, false, p, -2L);
}
@Override
protected boolean p() {
if (r()) {
return this.u.get();
}
return true;
}
@Override
protected boolean q() {
return false;
}
@Override
protected void s() {
long j;
long millis;
long j2 = 0;
if (this.f403a.ac() >= 0 || this.f403a.ad() >= 0) {
long ac = this.f403a.ac();
com.applovin.impl.sdk.a.g gVar = this.f403a;
if (ac >= 0) {
j = gVar.ac();
} else {
if (gVar.ae()) {
int l = (int) ((com.applovin.impl.sdk.a.a) this.f403a).l();
if (l > 0) {
millis = TimeUnit.SECONDS.toMillis(l);
} else {
int u = (int) this.f403a.u();
if (u > 0) {
millis = TimeUnit.SECONDS.toMillis(u);
}
}
j2 = 0 + millis;
}
double d = j2;
double ad = this.f403a.ad();
Double.isNaN(ad);
Double.isNaN(d);
j = (long) (d * (ad / 100.0d));
}
a(j);
}
}
}