Apk Done v1.0版本的 MD5 值为:44cfb8e1ce639995aa7f0de6a3a6388b
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.adview.activity.b;
import android.app.Activity;
import android.os.SystemClock;
import android.view.ViewGroup;
import com.applovin.impl.sdk.e.o;
import com.applovin.impl.sdk.e.z;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.impl.sdk.w;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.iab.omid.library.applovin.adsession.FriendlyObstructionPurpose;
import java.util.Collections;
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 t;
private com.applovin.impl.sdk.utils.e u;
private long v;
private AtomicBoolean w;
public b(com.applovin.impl.sdk.ad.e eVar, Activity activity, n nVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
super(eVar, activity, nVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
this.t = new com.applovin.impl.adview.activity.a.b(this.a, this.e, this.b);
this.w = new AtomicBoolean();
}
private long c() {
if (this.a instanceof com.applovin.impl.sdk.ad.a) {
float l = ((com.applovin.impl.sdk.ad.a) this.a).l();
if (l <= 0.0f) {
l = (float) this.a.s();
}
double secondsToMillisLong = Utils.secondsToMillisLong(l);
double O = this.a.O();
Double.isNaN(O);
Double.isNaN(secondsToMillisLong);
return (long) (secondsToMillisLong * (O / 100.0d));
}
return 0L;
}
@Override
public void a() {
}
@Override
public void a(long j) {
}
@Override
public void a(ViewGroup viewGroup) {
this.t.a(this.g, this.f, viewGroup);
a(false);
this.f.renderAd(this.a);
a("javascript:al_onPoststitialShow();", this.a.P());
if (s()) {
long c = c();
this.v = c;
if (c > 0) {
if (w.a()) {
w wVar = this.c;
wVar.b("AppLovinFullscreenActivity", "Scheduling timer for ad fully watched in " + this.v + "ms...");
}
this.u = com.applovin.impl.sdk.utils.e.a(this.v, this.b, new Runnable() {
@Override
public void run() {
if (w.a()) {
b.this.c.b("AppLovinFullscreenActivity", "Marking ad as fully watched");
}
b.this.w.set(true);
}
});
}
}
if (this.g != null) {
if (this.a.s() >= 0) {
a(this.g, this.a.s(), new Runnable() {
@Override
public void run() {
b.this.i = SystemClock.elapsedRealtime();
}
});
} else {
this.g.setVisibility(0);
}
}
t();
this.b.S().a(new z(this.b, new Runnable() {
@Override
public void run() {
if (b.this.g != null) {
b.this.a.o().a(b.this.f, Collections.singletonList(new com.applovin.impl.sdk.a.d(b.this.g, FriendlyObstructionPurpose.CLOSE_AD, "close button")));
} else {
b.this.a.o().a(b.this.f);
}
}
}), o.a.MAIN, TimeUnit.SECONDS.toMillis(1L));
super.b(Utils.isVideoMutedInitially(this.b));
}
@Override
public void b() {
}
@Override
public void d() {
a((ViewGroup) null);
}
@Override
public void e() {
}
@Override
public void h() {
l();
com.applovin.impl.sdk.utils.e eVar = this.u;
if (eVar != null) {
eVar.a();
this.u = null;
}
this.a.o().e();
super.h();
}
@Override
protected void l() {
com.applovin.impl.sdk.utils.e eVar;
boolean q = q();
int i = 100;
if (s()) {
if (!q && (eVar = this.u) != null) {
double b = this.v - eVar.b();
double d = this.v;
Double.isNaN(b);
Double.isNaN(d);
i = (int) Math.min(100.0d, (b / d) * 100.0d);
}
if (w.a()) {
this.c.b("AppLovinFullscreenActivity", "Ad engaged at " + i + "%");
}
}
super.a(i, false, q, -2L);
}
@Override
protected boolean q() {
if (s()) {
return this.w.get();
}
return true;
}
@Override
protected boolean r() {
return false;
}
@Override
protected void t() {
long j;
long millis;
long j2 = 0;
if (this.a.aa() >= 0 || this.a.ab() >= 0) {
int i = (this.a.aa() > 0L ? 1 : (this.a.aa() == 0L ? 0 : -1));
com.applovin.impl.sdk.ad.e eVar = this.a;
if (i >= 0) {
j = eVar.aa();
} else {
if (eVar.ac()) {
int l = (int) ((com.applovin.impl.sdk.ad.a) this.a).l();
if (l > 0) {
millis = TimeUnit.SECONDS.toMillis(l);
} else {
int s = (int) this.a.s();
if (s > 0) {
millis = TimeUnit.SECONDS.toMillis(s);
}
}
j2 = 0 + millis;
}
double d = j2;
double ab = this.a.ab();
Double.isNaN(ab);
Double.isNaN(d);
j = (long) (d * (ab / 100.0d));
}
b(j);
}
}
}