- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
105 lines
3.0 KiB
Java
105 lines
3.0 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.ListAdapter;
|
|
import android.widget.ListView;
|
|
import android.widget.TextView;
|
|
import com.applovin.creative.MaxCreativeDebuggerDisplayedAdActivity;
|
|
import com.applovin.impl.ec;
|
|
import com.applovin.impl.r;
|
|
import com.applovin.impl.x4;
|
|
import com.applovin.sdk.R;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class w4 extends Activity {
|
|
private x4 a;
|
|
private FrameLayout b;
|
|
private ListView c;
|
|
|
|
@Override // android.app.Activity
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
setTitle("MAX Creative Debugger");
|
|
setContentView(R.layout.mediation_debugger_list_view);
|
|
this.b = (FrameLayout) findViewById(android.R.id.content);
|
|
this.c = (ListView) findViewById(R.id.listView);
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onStart() {
|
|
super.onStart();
|
|
x4 x4Var = this.a;
|
|
if (x4Var == null) {
|
|
finish();
|
|
return;
|
|
}
|
|
this.c.setAdapter((ListAdapter) x4Var);
|
|
x4 x4Var2 = this.a;
|
|
if (x4Var2 != null && !x4Var2.e().w().g()) {
|
|
a(R.string.applovin_creative_debugger_disabled_text);
|
|
return;
|
|
}
|
|
x4 x4Var3 = this.a;
|
|
if (x4Var3 == null || !x4Var3.f()) {
|
|
return;
|
|
}
|
|
a(R.string.applovin_creative_debugger_no_ads_text);
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onDestroy() {
|
|
super.onDestroy();
|
|
x4 x4Var = this.a;
|
|
if (x4Var != null) {
|
|
x4Var.a((ec.a) null);
|
|
this.a.g();
|
|
}
|
|
}
|
|
|
|
public class a implements ec.a {
|
|
final /* synthetic */ q a;
|
|
|
|
public a(q qVar) {
|
|
this.a = qVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ec.a
|
|
public void a(lb lbVar, dc dcVar) {
|
|
if (lbVar.b() != x4.a.RECENT_ADS.ordinal()) {
|
|
return;
|
|
}
|
|
r.a(w4.this, MaxCreativeDebuggerDisplayedAdActivity.class, this.a, new C0042a(lbVar));
|
|
}
|
|
|
|
/* renamed from: com.applovin.impl.w4$a$a, reason: collision with other inner class name */
|
|
public class C0042a implements r.b {
|
|
final /* synthetic */ lb a;
|
|
|
|
public C0042a(lb lbVar) {
|
|
this.a = lbVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.r.b
|
|
public void a(MaxCreativeDebuggerDisplayedAdActivity maxCreativeDebuggerDisplayedAdActivity) {
|
|
maxCreativeDebuggerDisplayedAdActivity.a((w6) w4.this.a.d().get(this.a.a()), w4.this.a.e());
|
|
}
|
|
}
|
|
}
|
|
|
|
public void a(x4 x4Var, q qVar) {
|
|
this.a = x4Var;
|
|
x4Var.a(new a(qVar));
|
|
}
|
|
|
|
private void a(int i) {
|
|
TextView textView = new TextView(this);
|
|
textView.setGravity(17);
|
|
textView.setTextSize(18.0f);
|
|
textView.setText(i);
|
|
this.b.addView(textView, new FrameLayout.LayoutParams(-1, -1, 17));
|
|
this.b.bringChildToFront(textView);
|
|
}
|
|
}
|