Puzzle King v2.3.8版本的 MD5 值为:1734eb975c9d2843afa462aec387292e
以下内容为反编译后的 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.f.o;
import com.applovin.impl.sdk.f.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 com.safedk.android.internal.special.SpecialsBridge;
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 u;
private com.applovin.impl.sdk.utils.f v;
private long w;
private AtomicBoolean x;
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.u = new com.applovin.impl.adview.activity.a.b(this.a, this.e, this.b);
this.x = new AtomicBoolean();
}
private long c() {
if (!(this.a instanceof com.applovin.impl.sdk.ad.a)) {
return 0L;
}
float l = ((com.applovin.impl.sdk.ad.a) this.a).l();
if (l <= 0.0f) {
l = (float) this.a.t();
}
return (long) (Utils.secondsToMillisLong(l) * (this.a.R() / 100.0d));
}
@Override
public void a() {
}
@Override
public void a(long j) {
}
@Override
public void a(ViewGroup viewGroup) {
this.u.a(this.g, this.f, viewGroup);
a(false);
SpecialsBridge.appLovinAdViewRenderAd(this.f, this.a);
a("javascript:al_onPoststitialShow();", this.a.S());
if (t()) {
long c = c();
this.w = c;
if (c > 0) {
if (w.a()) {
this.c.b("AppLovinFullscreenActivity", "Scheduling timer for ad fully watched in " + this.w + "ms...");
}
this.v = com.applovin.impl.sdk.utils.f.a(this.w, this.b, new Runnable() {
@Override
public void run() {
if (w.a()) {
b.this.c.b("AppLovinFullscreenActivity", "Marking ad as fully watched");
}
b.this.x.set(true);
}
});
}
}
if (this.g != null) {
if (this.a.t() >= 0) {
a(this.g, this.a.t(), new Runnable() {
@Override
public void run() {
b.this.j = SystemClock.elapsedRealtime();
}
});
} else {
this.g.setVisibility(0);
}
}
u();
this.b.U().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.b.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));
v();
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() {
m();
com.applovin.impl.sdk.utils.f fVar = this.v;
if (fVar != null) {
fVar.a();
this.v = null;
}
super.h();
}
@Override
protected void m() {
com.applovin.impl.sdk.utils.f fVar;
boolean r = r();
int i = 100;
if (t()) {
if (!r && (fVar = this.v) != null) {
i = (int) Math.min(100.0d, ((this.w - fVar.b()) / this.w) * 100.0d);
}
if (w.a()) {
this.c.b("AppLovinFullscreenActivity", "Ad engaged at " + i + "%");
}
}
super.a(i, false, r, -2L);
}
@Override
protected boolean r() {
if (t()) {
return this.x.get();
}
return true;
}
@Override
protected boolean s() {
return false;
}
@Override
protected void u() {
long ae;
long millis;
long j = 0;
if (this.a.ad() >= 0 || this.a.ae() >= 0) {
long ad = this.a.ad();
com.applovin.impl.sdk.ad.e eVar = this.a;
if (ad >= 0) {
ae = eVar.ad();
} else {
if (eVar.af()) {
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;
}
ae = (long) (j * (this.a.ae() / 100.0d));
}
b(ae);
}
}
@Override
public void w() {
super.w();
this.u.a(this.h);
this.j = SystemClock.elapsedRealtime();
this.x.set(true);
}
}