正在查看: CallApp v2.226 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 f.java JAVA 源代码文件
本页面展示 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.e;
import com.applovin.impl.g1;
import com.applovin.impl.l4;
import com.applovin.sdk.AppLovinSdkUtils;
class f extends Dialog implements g1 {
private final Activity f8474a;
private final com.applovin.impl.sdk.j f8475b;
private final com.applovin.impl.sdk.n f8476c;
private final b f8477d;
private final com.applovin.impl.sdk.ad.a f8478e;
private RelativeLayout f8479f;
private e f8480g;
public class a implements Animation.AnimationListener {
public a() {
}
@Override
public void onAnimationEnd(Animation animation) {
f.this.f8480g.setClickable(true);
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationStart(Animation animation) {
}
}
public f(com.applovin.impl.sdk.ad.a aVar, b bVar, Activity activity, com.applovin.impl.sdk.j jVar) {
super(activity, R.style.Theme.Translucent.NoTitleBar);
if (aVar == null) {
throw new IllegalArgumentException("No ad specified");
}
if (bVar == null) {
throw new IllegalArgumentException("No main view specified");
}
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified");
}
if (activity == null) {
throw new IllegalArgumentException("No activity specified");
}
this.f8475b = jVar;
this.f8476c = jVar.I();
this.f8474a = activity;
this.f8477d = bVar;
this.f8478e = aVar;
requestWindowFeature(1);
setCancelable(false);
}
private void g() {
this.f8474a.runOnUiThread(new t(this, 0));
}
@Override
public void dismiss() {
this.f8474a.runOnUiThread(new t(this, 1));
}
@Override
public void onBackPressed() {
this.f8477d.a("javascript:al_onBackPressed();");
dismiss();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
d();
}
@Override
public void onStart() {
super.onStart();
try {
Window window = getWindow();
if (window != null) {
window.setFlags(this.f8474a.getWindow().getAttributes().flags, this.f8474a.getWindow().getAttributes().flags);
window.addFlags(16777216);
} else if (com.applovin.impl.sdk.n.a()) {
this.f8476c.b("ExpandedAdDialog", "Unable to turn on hardware acceleration - window is null");
}
} catch (Throwable th) {
if (com.applovin.impl.sdk.n.a()) {
this.f8476c.a("ExpandedAdDialog", "Setting window flags failed.", th);
}
}
}
private void a() {
this.f8477d.a("javascript:al_onCloseTapped();");
dismiss();
}
public void b(View view) {
if (this.f8480g.isClickable()) {
this.f8480g.performClick();
}
}
private void d() {
this.f8477d.setLayoutParams(com.amazon.device.ads.l.i(-1, -1, 13));
RelativeLayout relativeLayout = new RelativeLayout(this.f8474a);
this.f8479f = relativeLayout;
relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
this.f8479f.setBackgroundColor(-1157627904);
this.f8479f.addView(this.f8477d);
if (!this.f8478e.k1()) {
a(this.f8478e.e1());
g();
}
setContentView(this.f8479f);
}
public void e() {
this.f8479f.removeView(this.f8477d);
super.dismiss();
}
public void f() {
try {
if (this.f8480g == null) {
a();
}
this.f8480g.setVisibility(0);
this.f8480g.bringToFront();
AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
alphaAnimation.setDuration(300L);
alphaAnimation.setAnimationListener(new a());
this.f8480g.startAnimation(alphaAnimation);
} catch (Throwable th) {
if (com.applovin.impl.sdk.n.a()) {
this.f8476c.a("ExpandedAdDialog", "Unable to fade in close button", th);
}
a();
}
}
public b c() {
return this.f8477d;
}
private void a(e.a aVar) {
if (this.f8480g != null) {
if (com.applovin.impl.sdk.n.a()) {
this.f8476c.k("ExpandedAdDialog", "Attempting to create duplicate close button");
return;
}
return;
}
e a8 = e.a(aVar, this.f8474a);
this.f8480g = a8;
a8.setVisibility(8);
final int i8 = 0;
this.f8480g.setOnClickListener(new View.OnClickListener(this) {
public final f f8503b;
{
this.f8503b = this;
}
@Override
public final void onClick(View view) {
switch (i8) {
case 0:
this.f8503b.a(view);
break;
default:
this.f8503b.b(view);
break;
}
}
});
this.f8480g.setClickable(false);
int a9 = a(((Integer) this.f8475b.a(l4.f9279u1)).intValue());
RelativeLayout.LayoutParams i9 = com.amazon.device.ads.l.i(a9, a9, 10);
com.applovin.impl.sdk.j jVar = this.f8475b;
l4 l4Var = l4.f9300x1;
i9.addRule(((Boolean) jVar.a(l4Var)).booleanValue() ? 9 : 11);
this.f8480g.a(a9);
int a10 = a(((Integer) this.f8475b.a(l4.f9293w1)).intValue());
int a11 = a(((Integer) this.f8475b.a(l4.f9286v1)).intValue());
i9.setMargins(a11, a10, a11, 0);
this.f8479f.addView(this.f8480g, i9);
this.f8480g.bringToFront();
int a12 = a(((Integer) this.f8475b.a(l4.y1)).intValue());
View view = new View(this.f8474a);
view.setBackgroundColor(0);
int i10 = a9 + a12;
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(i10, i10);
layoutParams.addRule(10);
layoutParams.addRule(((Boolean) this.f8475b.a(l4Var)).booleanValue() ? 9 : 11);
layoutParams.setMargins(a11 - a(5), a10 - a(5), a11 - a(5), 0);
final int i11 = 1;
view.setOnClickListener(new View.OnClickListener(this) {
public final f f8503b;
{
this.f8503b = this;
}
@Override
public final void onClick(View view2) {
switch (i11) {
case 0:
this.f8503b.a(view2);
break;
default:
this.f8503b.b(view2);
break;
}
}
});
this.f8479f.addView(view, layoutParams);
view.bringToFront();
}
public com.applovin.impl.sdk.ad.a b() {
return this.f8478e;
}
public void a(View view) {
a();
}
private int a(int i8) {
return AppLovinSdkUtils.dpToPx(this.f8474a, i8);
}
}