Step Record v1.1.5版本的 MD5 值为:5797275f89198878d2f00ee92d534382
以下内容为反编译后的 m.java 源代码,内容仅作参考
package com.applovin.impl.adview;
import android.R;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.RelativeLayout;
import com.applovin.impl.adview.j;
import com.applovin.sdk.AppLovinSdkUtils;
import com.chartboost.heliumsdk.impl.KKzzzzH1;
public class m extends Dialog implements l {
private final Activity ahM;
private final d ahN;
private final com.applovin.impl.sdk.ad.a ahO;
private RelativeLayout ahP;
private j ahQ;
private final com.applovin.impl.sdk.x logger;
private final com.applovin.impl.sdk.n sdk;
public class AnonymousClass1 implements Animation.AnimationListener {
public AnonymousClass1() {
}
@Override
public void onAnimationEnd(Animation animation) {
m.this.ahQ.setClickable(true);
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationStart(Animation animation) {
}
}
public m(com.applovin.impl.sdk.ad.a aVar, d dVar, Activity activity, com.applovin.impl.sdk.n nVar) {
super(activity, R.style.Theme.Translucent.NoTitleBar);
if (aVar != null) {
if (dVar != null) {
if (nVar != null) {
if (activity != null) {
this.sdk = nVar;
this.logger = nVar.BL();
this.ahM = activity;
this.ahN = dVar;
this.ahO = aVar;
requestWindowFeature(1);
setCancelable(false);
return;
}
throw new IllegalArgumentException("No activity specified");
}
throw new IllegalArgumentException("No sdk specified");
}
throw new IllegalArgumentException("No main view specified");
}
throw new IllegalArgumentException("No ad specified");
}
private int ga(int i) {
return AppLovinSdkUtils.dpToPx(this.ahM, i);
}
public void i(View view) {
if (this.ahQ.isClickable()) {
this.ahQ.performClick();
}
}
public void j(View view) {
rG();
}
private void rF() {
this.ahN.setLayoutParams(KKzzzzH1.t1S1zKHK(-1, -1, 13));
RelativeLayout relativeLayout = new RelativeLayout(this.ahM);
this.ahP = relativeLayout;
relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
this.ahP.setBackgroundColor(-1157627904);
this.ahP.addView(this.ahN);
if (!this.ahO.FL()) {
a(this.ahO.FM());
rH();
}
setContentView(this.ahP);
}
private void rG() {
this.ahN.bq("javascript:al_onCloseTapped();");
dismiss();
}
private void rH() {
this.ahM.runOnUiThread(new HtSH(this, 0));
}
public void rK() {
try {
if (this.ahQ == null) {
rG();
}
this.ahQ.setVisibility(0);
this.ahQ.bringToFront();
AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
alphaAnimation.setDuration(300L);
alphaAnimation.setAnimationListener(new Animation.AnimationListener() {
public AnonymousClass1() {
}
@Override
public void onAnimationEnd(Animation animation) {
m.this.ahQ.setClickable(true);
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationStart(Animation animation) {
}
});
this.ahQ.startAnimation(alphaAnimation);
} catch (Throwable th) {
if (com.applovin.impl.sdk.x.Fk()) {
this.logger.c("ExpandedAdDialog", "Unable to fade in close button", th);
}
rG();
}
}
public void rL() {
this.ahP.removeView(this.ahN);
super.dismiss();
}
@Override
public void dismiss() {
com.applovin.impl.sdk.d.d statsManagerHelper = this.ahN.getStatsManagerHelper();
if (statsManagerHelper != null) {
statsManagerHelper.JN();
}
this.ahM.runOnUiThread(new Runnable() {
@Override
public final void run() {
m.this.rL();
}
});
}
@Override
public void onBackPressed() {
this.ahN.bq("javascript:al_onBackPressed();");
dismiss();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
rF();
}
@Override
public void onStart() {
super.onStart();
try {
Window window = getWindow();
if (window != null) {
window.setFlags(this.ahM.getWindow().getAttributes().flags, this.ahM.getWindow().getAttributes().flags);
window.addFlags(16777216);
} else if (com.applovin.impl.sdk.x.Fk()) {
this.logger.i("ExpandedAdDialog", "Unable to turn on hardware acceleration - window is null");
}
} catch (Throwable th) {
if (com.applovin.impl.sdk.x.Fk()) {
this.logger.c("ExpandedAdDialog", "Setting window flags failed.", th);
}
}
}
public com.applovin.impl.sdk.ad.a rI() {
return this.ahO;
}
public d rJ() {
return this.ahN;
}
private void a(j.a aVar) {
if (this.ahQ != null) {
if (com.applovin.impl.sdk.x.Fk()) {
this.logger.h("ExpandedAdDialog", "Attempting to create duplicate close button");
return;
}
return;
}
j a = j.a(aVar, this.ahM);
this.ahQ = a;
a.setVisibility(8);
this.ahQ.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
m.this.j(view);
}
});
this.ahQ.setClickable(false);
int ga = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMz)).intValue());
RelativeLayout.LayoutParams t1S1zKHK = KKzzzzH1.t1S1zKHK(ga, ga, 10);
com.applovin.impl.sdk.n nVar = this.sdk;
com.applovin.impl.sdk.c.b<Boolean> bVar = com.applovin.impl.sdk.c.b.aMC;
t1S1zKHK.addRule(((Boolean) nVar.a(bVar)).booleanValue() ? 9 : 11);
this.ahQ.fZ(ga);
int ga2 = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMB)).intValue());
int ga3 = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMA)).intValue());
t1S1zKHK.setMargins(ga3, ga2, ga3, 0);
this.ahP.addView(this.ahQ, t1S1zKHK);
this.ahQ.bringToFront();
int ga4 = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMD)).intValue());
View view = new View(this.ahM);
view.setBackgroundColor(0);
int i = ga + ga4;
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(i, i);
layoutParams.addRule(10);
layoutParams.addRule(((Boolean) this.sdk.a(bVar)).booleanValue() ? 9 : 11);
layoutParams.setMargins(ga3 - ga(5), ga2 - ga(5), ga3 - ga(5), 0);
view.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
m.this.i(view2);
}
});
this.ahP.addView(view, layoutParams);
view.bringToFront();
}
}