Driving Zone: Germany v1.22.4版本的 MD5 值为:2b6e2d8e8733a3104dcc306c5770286c
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.ui.b;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.FrameLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import com.applovin.impl.mediation.debugger.ui.b.b;
import com.applovin.impl.mediation.debugger.ui.d.c;
import com.applovin.impl.mediation.debugger.ui.d.d;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.impl.sdk.utils.b;
import com.applovin.mediation.MaxDebuggerAdUnitsListActivity;
import com.applovin.mediation.MaxDebuggerDetailActivity;
import com.applovin.mediation.MaxDebuggerTestLiveNetworkActivity;
import com.applovin.mediation.MaxDebuggerTestModeNetworkActivity;
public class a extends com.applovin.impl.mediation.debugger.ui.a {
private b f1514a;
private DataSetObserver b;
private FrameLayout c;
private ListView d;
private com.applovin.impl.adview.a e;
private void a() {
String l = this.f1514a.l();
if (TextUtils.isEmpty(l)) {
return;
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT", l);
intent.putExtra("android.intent.extra.TITLE", "Mediation Debugger logs");
intent.putExtra("android.intent.extra.SUBJECT", "MAX Mediation Debugger logs");
startActivity(Intent.createChooser(intent, null));
}
public void a(final Context context) {
if (!StringUtils.isValidString(this.f1514a.h()) || this.f1514a.c()) {
return;
}
this.f1514a.a(true);
runOnUiThread(new Runnable() {
@Override
public void run() {
Utils.showAlert(a.this.f1514a.g(), a.this.f1514a.h(), context);
}
});
}
private void b() {
c();
com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, R.attr.progressBarStyleLarge);
this.e = aVar;
aVar.setColor(-3355444);
this.c.addView(this.e, new FrameLayout.LayoutParams(-1, -1, 17));
this.c.bringChildToFront(this.e);
this.e.a();
}
public void c() {
com.applovin.impl.adview.a aVar = this.e;
if (aVar != null) {
aVar.b();
this.c.removeView(this.e);
this.e = null;
}
}
@Override
protected n getSdk() {
b bVar = this.f1514a;
if (bVar != null) {
return bVar.d();
}
return null;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setTitle("MAX Mediation Debugger");
setContentView(com.applovin.sdk.R.layout.mediation_debugger_list_view);
this.c = (FrameLayout) findViewById(R.id.content);
this.d = (ListView) findViewById(com.applovin.sdk.R.id.listView);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(com.applovin.sdk.R.menu.mediation_debugger_activity_menu, menu);
return true;
}
@Override
public void onDestroy() {
super.onDestroy();
b bVar = this.f1514a;
if (bVar != null) {
bVar.unregisterDataSetObserver(this.b);
this.f1514a.a((d.a) null);
}
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (com.applovin.sdk.R.id.action_share != menuItem.getItemId()) {
return super.onOptionsItemSelected(menuItem);
}
a();
return true;
}
@Override
protected void onStart() {
super.onStart();
this.d.setAdapter((ListAdapter) this.f1514a);
b bVar = this.f1514a;
if (bVar == null || bVar.a()) {
return;
}
b();
}
public void setListAdapter(b bVar, final com.applovin.impl.sdk.a aVar) {
DataSetObserver dataSetObserver;
b bVar2 = this.f1514a;
if (bVar2 != null && (dataSetObserver = this.b) != null) {
bVar2.unregisterDataSetObserver(dataSetObserver);
}
this.f1514a = bVar;
this.b = new DataSetObserver() {
@Override
public void onChanged() {
a.this.c();
a aVar2 = a.this;
aVar2.a((Context) aVar2);
}
};
a((Context) this);
this.f1514a.registerDataSetObserver(this.b);
this.f1514a.a(new d.a() {
@Override
public void a(com.applovin.impl.mediation.debugger.ui.d.a aVar2, final c cVar) {
a aVar3;
Class cls;
com.applovin.impl.sdk.a aVar4;
b.a aVar5;
int a2 = aVar2.a();
if (a2 == b.EnumC0072b.MAX.ordinal()) {
Utils.showAlert(cVar.l(), cVar.m(), a.this);
return;
}
if (a2 != b.EnumC0072b.ADS.ordinal()) {
if ((a2 == b.EnumC0072b.INCOMPLETE_NETWORKS.ordinal() || a2 == b.EnumC0072b.COMPLETED_NETWORKS.ordinal()) && (cVar instanceof com.applovin.impl.mediation.debugger.ui.b.a.a)) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerDetailActivity.class, aVar, new b.a<MaxDebuggerDetailActivity>() {
@Override
public void a(MaxDebuggerDetailActivity maxDebuggerDetailActivity) {
maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) cVar).d());
}
});
return;
}
return;
}
if (aVar2.b() == b.a.AD_UNITS.ordinal()) {
if (a.this.f1514a.e().size() <= 0) {
Utils.showAlert("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this);
return;
}
aVar3 = a.this;
cls = MaxDebuggerAdUnitsListActivity.class;
aVar4 = aVar;
aVar5 = new b.a<MaxDebuggerAdUnitsListActivity>() {
@Override
public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.f1514a.e(), false, a.this.f1514a.d());
}
};
} else {
if (aVar2.b() == b.a.SELECT_LIVE_NETWORKS.ordinal()) {
if (a.this.f1514a.i().size() > 0 || a.this.f1514a.j().size() > 0) {
if (!a.this.f1514a.d().L().a()) {
aVar3 = a.this;
cls = MaxDebuggerTestLiveNetworkActivity.class;
aVar4 = aVar;
aVar5 = new b.a<MaxDebuggerTestLiveNetworkActivity>() {
@Override
public void a(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) {
maxDebuggerTestLiveNetworkActivity.initialize(a.this.f1514a.i(), a.this.f1514a.j(), a.this.f1514a.d());
}
};
}
Utils.showAlert("Restart Required", cVar.m(), a.this);
return;
}
Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this);
return;
}
if (aVar2.b() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) {
if (!a.this.f1514a.d().L().a()) {
a.this.getSdk().L().d();
Utils.showAlert("Restart Required", cVar.m(), a.this);
return;
}
if (a.this.f1514a.k().size() > 0) {
aVar3 = a.this;
cls = MaxDebuggerTestModeNetworkActivity.class;
aVar4 = aVar;
aVar5 = new b.a<MaxDebuggerTestModeNetworkActivity>() {
@Override
public void a(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) {
maxDebuggerTestModeNetworkActivity.initialize(a.this.f1514a.k(), a.this.f1514a.d());
}
};
}
Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this);
return;
}
if (aVar2.b() != b.a.INITIALIZATION_AD_UNITS.ordinal()) {
return;
}
aVar3 = a.this;
cls = MaxDebuggerAdUnitsListActivity.class;
aVar4 = aVar;
aVar5 = new b.a<MaxDebuggerAdUnitsListActivity>() {
@Override
public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.f1514a.f(), true, a.this.f1514a.d());
}
};
}
com.applovin.impl.sdk.utils.b.a(aVar3, cls, aVar4, aVar5);
}
});
}
}