360 Wi-Fi v1.0.1版本的 MD5 值为:53dc85b63eb655b13344ce30ddaccae2
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.applovin.impl.mediation.debugger.ui.b;
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.privacy.a.d;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.b;
import com.applovin.impl.sdk.utils.s;
import com.applovin.impl.sdk.utils.u;
import com.applovin.mediation.MaxDebuggerAdUnitsListActivity;
import com.applovin.mediation.MaxDebuggerDetailActivity;
import com.applovin.mediation.MaxDebuggerTcfConsentStatusesListActivity;
import com.applovin.mediation.MaxDebuggerTcfInfoListActivity;
import com.applovin.mediation.MaxDebuggerTestLiveNetworkActivity;
import com.applovin.mediation.MaxDebuggerTestModeNetworkActivity;
import com.applovin.sdk.R;
import iiIL.LliLLIill;
public class a extends com.applovin.impl.mediation.debugger.ui.a {
private FrameLayout akw;
private ListView akx;
private b aoa;
private DataSetObserver aqL;
private com.applovin.impl.adview.a aqM;
public static void iL(a aVar, Context context) {
aVar.x(context);
}
public void w(Context context) {
if (StringUtils.isValidString(this.aoa.vQ()) && !this.aoa.wh()) {
this.aoa.az(true);
runOnUiThread(new LliLLIill(22, this, context));
}
}
private void we() {
String wo = this.aoa.wo();
if (TextUtils.isEmpty(wo)) {
return;
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT", wo);
intent.putExtra("android.intent.extra.TITLE", "Mediation Debugger logs");
intent.putExtra("android.intent.extra.SUBJECT", "MAX Mediation Debugger logs");
startActivity(Intent.createChooser(intent, null));
}
private void wf() {
wg();
com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, 16842874);
this.aqM = aVar;
aVar.setColor(-3355444);
this.akw.addView(this.aqM, new FrameLayout.LayoutParams(-1, -1, 17));
this.akw.bringChildToFront(this.aqM);
this.aqM.qN();
}
public void wg() {
com.applovin.impl.adview.a aVar = this.aqM;
if (aVar != null) {
aVar.qO();
this.akw.removeView(this.aqM);
this.aqM = null;
}
}
public void x(Context context) {
u.a(this.aoa.wk(), this.aoa.vQ(), context);
}
@Override
public n getSdk() {
b bVar = this.aoa;
if (bVar != null) {
return bVar.getSdk();
}
return null;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setTitle("MAX Mediation Debugger");
setContentView(R.layout.mediation_debugger_list_view);
this.akw = (FrameLayout) findViewById(16908290);
ListView listView = (ListView) findViewById(R.id.listView);
this.akx = listView;
listView.setAdapter((ListAdapter) this.aoa);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.mediation_debugger_activity_menu, menu);
return true;
}
@Override
public void onDestroy() {
super.onDestroy();
b bVar = this.aoa;
if (bVar != null) {
bVar.unregisterDataSetObserver(this.aqL);
this.aoa.a(null);
}
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (R.id.action_share == menuItem.getItemId()) {
we();
return true;
}
return super.onOptionsItemSelected(menuItem);
}
@Override
public void onStart() {
super.onStart();
b bVar = this.aoa;
if (bVar != null && !bVar.isInitialized()) {
wf();
}
}
public void setListAdapter(b bVar, final com.applovin.impl.sdk.a aVar) {
DataSetObserver dataSetObserver;
b bVar2 = this.aoa;
if (bVar2 != null && (dataSetObserver = this.aqL) != null) {
bVar2.unregisterDataSetObserver(dataSetObserver);
}
this.aoa = bVar;
this.aqL = new DataSetObserver() {
{
a.this = this;
}
@Override
public void onChanged() {
a.this.wg();
a aVar2 = a.this;
aVar2.w(aVar2);
}
};
w(this);
this.aoa.registerDataSetObserver(this.aqL);
this.aoa.a(new d.a() {
{
a.this = this;
}
@Override
public void onClick(com.applovin.impl.mediation.debugger.ui.d.a aVar2, final c cVar) {
int wP = aVar2.wP();
if (wP == b.e.APP_INFO.ordinal()) {
u.a(cVar.wk(), cVar.vQ(), a.this);
} else if (wP == b.e.MAX.ordinal()) {
n sdk = a.this.aoa.getSdk();
if (sdk.Cl().isEnabled()) {
int wQ = aVar2.wQ();
if (sdk.Cl().zX() == d.a.TERMS) {
wQ++;
}
if (wQ == b.c.PRIVACY_POLICY_URL.ordinal()) {
if (sdk.Cl().getPrivacyPolicyUri() != null) {
s.a(sdk.Cl().getPrivacyPolicyUri(), n.getApplicationContext(), sdk);
return;
} else {
u.a("Missing Privacy Policy URL", "You cannot use the AppLovin SDK's consent flow without defining a Privacy Policy URL", a.this);
return;
}
} else if (wQ == b.c.TERMS_OF_SERVICE_URL.ordinal()) {
if (sdk.Cl().getTermsOfServiceUri() != null) {
s.a(sdk.Cl().getTermsOfServiceUri(), n.getApplicationContext(), sdk);
return;
}
return;
}
}
u.a(cVar.wk(), cVar.vQ(), a.this);
} else if (wP == b.e.PRIVACY.ordinal()) {
if (aVar2.wQ() == b.d.CMP.ordinal()) {
if (StringUtils.isValidString(a.this.aoa.getSdk().Cm().Am())) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTcfInfoListActivity.class, aVar, new b.a<MaxDebuggerTcfInfoListActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerTcfInfoListActivity maxDebuggerTcfInfoListActivity) {
maxDebuggerTcfInfoListActivity.initialize(a.this.aoa.getSdk());
}
});
} else {
u.a("", cVar.vQ(), a.this);
}
} else if (aVar2.wQ() == b.d.NETWORK_CONSENT_STATUSES.ordinal()) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTcfConsentStatusesListActivity.class, aVar, new b.a<MaxDebuggerTcfConsentStatusesListActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerTcfConsentStatusesListActivity maxDebuggerTcfConsentStatusesListActivity) {
maxDebuggerTcfConsentStatusesListActivity.initialize(a.this.aoa.getSdk());
}
});
}
} else if (wP == b.e.ADS.ordinal()) {
if (aVar2.wQ() == b.a.AD_UNITS.ordinal()) {
if (a.this.aoa.wi().size() > 0) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, aVar, new b.a<MaxDebuggerAdUnitsListActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.aoa.wi(), false, a.this.aoa.getSdk());
}
});
} else {
u.a("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this);
}
} else if (aVar2.wQ() == b.a.SELECT_LIVE_NETWORKS.ordinal()) {
if (a.this.aoa.wl().size() <= 0 && a.this.aoa.wm().size() <= 0) {
u.a("Complete Integrations", "Please complete integrations in order to access this.", a.this);
} else if (a.this.aoa.getSdk().CE().isEnabled()) {
u.a("Restart Required", cVar.vQ(), a.this);
} else {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestLiveNetworkActivity.class, aVar, new b.a<MaxDebuggerTestLiveNetworkActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) {
maxDebuggerTestLiveNetworkActivity.initialize(a.this.aoa.wl(), a.this.aoa.wm(), a.this.aoa.getSdk());
}
});
}
} else if (aVar2.wQ() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) {
if (!a.this.aoa.getSdk().CE().isEnabled()) {
a.this.getSdk().CE().xl();
u.a("Restart Required", cVar.vQ(), a.this);
} else if (a.this.aoa.wn().size() > 0) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestModeNetworkActivity.class, aVar, new b.a<MaxDebuggerTestModeNetworkActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) {
maxDebuggerTestModeNetworkActivity.initialize(a.this.aoa.wn(), a.this.aoa.getSdk());
}
});
} else {
u.a("Complete Integrations", "Please complete integrations in order to access this.", a.this);
}
} else if (aVar2.wQ() == b.a.INITIALIZATION_AD_UNITS.ordinal()) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, aVar, new b.a<MaxDebuggerAdUnitsListActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.aoa.wj(), true, a.this.aoa.getSdk());
}
});
}
} else if ((wP == b.e.INCOMPLETE_NETWORKS.ordinal() || wP == b.e.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>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerDetailActivity maxDebuggerDetailActivity) {
maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) cVar).wA());
}
});
}
}
});
}
}