光速虚拟机 v3.8.2版本的 MD5 值为:e0eecbee2ded4bfb58a5ca72845ca90b
以下内容为反编译后的 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.ac;
import com.applovin.impl.sdk.e.r;
import com.applovin.impl.sdk.o;
import com.applovin.impl.sdk.utils.w;
import com.applovin.impl.sdk.y;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.iab.omid.library.applovin.adsession.FriendlyObstructionPurpose;
import com.safedk.android.internal.special.SpecialsBridge;
import java.util.ArrayList;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
public class b extends a {
private long A;
private final AtomicBoolean B;
private final com.applovin.impl.adview.activity.a.b y;
private com.applovin.impl.sdk.utils.f z;
public b(com.applovin.impl.sdk.ad.e eVar, Activity activity, Map<String, Object> map, o oVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
super(eVar, activity, map, oVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
this.y = new com.applovin.impl.adview.activity.a.b(this.a, this.e, this.b);
this.B = 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.t();
}
return (long) (w.b(l) * (this.a.U() / 100.0d));
}
return 0L;
}
@Override
public void a() {
}
@Override
public void a(long j) {
}
@Override
public void a(ViewGroup viewGroup) {
this.y.a(this.h, this.g, this.f, viewGroup);
a(false);
if (this.g != null) {
this.g.a();
}
SpecialsBridge.appLovinAdViewRenderAd(this.f, this.a);
a("javascript:al_onPoststitialShow();", this.a.X());
if (u()) {
long c = c();
this.A = c;
if (c > 0) {
y yVar = this.c;
if (y.a()) {
y yVar2 = this.c;
yVar2.b("AppLovinFullscreenActivity", "Scheduling timer for ad fully watched in " + this.A + "ms...");
}
this.z = com.applovin.impl.sdk.utils.f.a(this.A, this.b, new Runnable() {
@Override
public void run() {
y yVar3 = b.this.c;
if (y.a()) {
b.this.c.b("AppLovinFullscreenActivity", "Marking ad as fully watched");
}
b.this.B.set(true);
}
});
}
}
if (this.h != null) {
if (this.a.t() >= 0) {
a(this.h, this.a.t(), new Runnable() {
@Override
public void run() {
b.this.k = SystemClock.elapsedRealtime();
}
});
} else {
this.h.setVisibility(0);
}
}
v();
this.b.G().a(new ac(this.b, "updateMainViewOM", new Runnable() {
@Override
public void run() {
ArrayList arrayList = new ArrayList();
if (b.this.h != null) {
arrayList.add(new com.applovin.impl.sdk.a.d(b.this.h, FriendlyObstructionPurpose.CLOSE_AD, "close button"));
}
if (b.this.g != null && b.this.g.b()) {
arrayList.add(new com.applovin.impl.sdk.a.d(b.this.g, FriendlyObstructionPurpose.NOT_VISIBLE, b.this.g.getIdentifier()));
}
b.this.a.o().a(b.this.f, arrayList);
}
}), r.b.MAIN, TimeUnit.SECONDS.toMillis(1L));
w();
super.b(w.c(this.b));
}
@Override
public void b() {
}
@Override
public void d() {
a((ViewGroup) null);
}
@Override
public void e() {
}
@Override
public void h() {
n();
com.applovin.impl.sdk.utils.f fVar = this.z;
if (fVar != null) {
fVar.a();
this.z = null;
}
super.h();
}
@Override
protected void n() {
com.applovin.impl.sdk.utils.f fVar;
boolean s = s();
int i = 100;
if (u()) {
if (!s && (fVar = this.z) != null) {
i = (int) Math.min(100.0d, ((this.A - fVar.b()) / this.A) * 100.0d);
}
y yVar = this.c;
if (y.a()) {
y yVar2 = this.c;
yVar2.b("AppLovinFullscreenActivity", "Ad engaged at " + i + "%");
}
}
super.a(i, false, s, -2L);
}
@Override
protected boolean s() {
if (u()) {
return this.B.get();
}
return true;
}
@Override
protected boolean t() {
return false;
}
@Override
protected void v() {
long aj;
long millis;
long j = 0;
if (this.a.ai() >= 0 || this.a.aj() >= 0) {
if (this.a.ai() >= 0) {
aj = this.a.ai();
} else {
if (this.a.ak()) {
int l = (int) ((com.applovin.impl.sdk.ad.a) this.a).l();
if (l > 0) {
millis = TimeUnit.SECONDS.toMillis(l);
} else {
int t = (int) this.a.t();
if (t > 0) {
millis = TimeUnit.SECONDS.toMillis(t);
}
}
j = 0 + millis;
}
aj = (long) (j * (this.a.aj() / 100.0d));
}
b(aj);
}
}
@Override
public void x() {
super.x();
this.y.a(this.i);
this.k = SystemClock.elapsedRealtime();
this.B.set(true);
}
}