Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 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.r;
import com.applovin.impl.sdk.utils.t;
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.mediation.MaxDebuggerUnifiedFlowActivity;
import com.applovin.sdk.R;
import myobfuscated.f2.i;
public class a extends com.applovin.impl.mediation.debugger.ui.a {
private FrameLayout akA;
private ListView akB;
private b aoy;
private DataSetObserver arj;
private com.applovin.impl.adview.a ark;
public static void b(a aVar, Context context) {
aVar.x(context);
}
public void w(Context context) {
if (!StringUtils.isValidString(this.aoy.we()) || this.aoy.wv()) {
return;
}
this.aoy.az(true);
runOnUiThread(new i(8, this, context));
}
private void ws() {
String wC = this.aoy.wC();
if (TextUtils.isEmpty(wC)) {
return;
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT", wC);
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 wt() {
wu();
com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, 16842874);
this.ark = aVar;
aVar.setColor(-3355444);
this.akA.addView(this.ark, new FrameLayout.LayoutParams(-1, -1, 17));
this.akA.bringChildToFront(this.ark);
this.ark.qN();
}
public void wu() {
com.applovin.impl.adview.a aVar = this.ark;
if (aVar != null) {
aVar.qO();
this.akA.removeView(this.ark);
this.ark = null;
}
}
public void x(Context context) {
t.a(this.aoy.wy(), this.aoy.we(), context);
}
@Override
public n getSdk() {
b bVar = this.aoy;
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.akA = (FrameLayout) findViewById(16908290);
ListView listView = (ListView) findViewById(R.id.listView);
this.akB = listView;
listView.setAdapter((ListAdapter) this.aoy);
}
@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.aoy;
if (bVar != null) {
bVar.unregisterDataSetObserver(this.arj);
this.aoy.a(null);
}
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (R.id.action_share == menuItem.getItemId()) {
ws();
return true;
}
return super.onOptionsItemSelected(menuItem);
}
@Override
public void onStart() {
super.onStart();
b bVar = this.aoy;
if (bVar == null || bVar.isInitialized()) {
return;
}
wt();
}
public void setListAdapter(b bVar, final com.applovin.impl.sdk.a aVar) {
DataSetObserver dataSetObserver;
b bVar2 = this.aoy;
if (bVar2 != null && (dataSetObserver = this.arj) != null) {
bVar2.unregisterDataSetObserver(dataSetObserver);
}
this.aoy = bVar;
this.arj = new DataSetObserver() {
{
a.this = this;
}
@Override
public void onChanged() {
a.this.wu();
a aVar2 = a.this;
aVar2.w(aVar2);
}
};
w(this);
this.aoy.registerDataSetObserver(this.arj);
this.aoy.a(new d.a() {
{
a.this = this;
}
@Override
public void onClick(com.applovin.impl.mediation.debugger.ui.d.a aVar2, final c cVar) {
int xd = aVar2.xd();
if (xd == b.e.APP_INFO.ordinal()) {
t.a(cVar.wy(), cVar.we(), a.this);
} else if (xd == b.e.MAX.ordinal()) {
final n sdk = a.this.aoy.getSdk();
if (sdk.CG().isEnabled()) {
int xe = aVar2.xe();
if (sdk.CG().Ap() != d.a.UNIFIED) {
int i = xe + 1;
if (i == b.c.PRIVACY_POLICY_URL.ordinal()) {
if (sdk.CG().getPrivacyPolicyUri() != null) {
r.a(sdk.CG().getPrivacyPolicyUri(), n.getApplicationContext(), sdk);
return;
} else {
t.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 (i == b.c.TERMS_OF_SERVICE_URL.ordinal()) {
if (sdk.CG().getTermsOfServiceUri() != null) {
r.a(sdk.CG().getTermsOfServiceUri(), n.getApplicationContext(), sdk);
return;
}
return;
}
} else if (xe == b.c.CONSENT_FLOW.ordinal()) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerUnifiedFlowActivity.class, aVar, new b.a<MaxDebuggerUnifiedFlowActivity>() {
{
AnonymousClass2.this = this;
}
@Override
public void onActivityCreated(MaxDebuggerUnifiedFlowActivity maxDebuggerUnifiedFlowActivity) {
maxDebuggerUnifiedFlowActivity.initialize(sdk);
}
});
return;
}
}
t.a(cVar.wy(), cVar.we(), a.this);
} else if (xd == b.e.PRIVACY.ordinal()) {
if (aVar2.xe() != b.d.CMP.ordinal()) {
if (aVar2.xe() == 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.aoy.getSdk());
}
});
}
} else if (StringUtils.isValidString(a.this.aoy.getSdk().CH().AN())) {
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.aoy.getSdk());
}
});
} else {
t.a(cVar.wy(), cVar.we(), a.this);
}
} else if (xd != b.e.ADS.ordinal()) {
if ((xd == b.e.INCOMPLETE_NETWORKS.ordinal() || xd == 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).wO());
}
});
}
} else if (aVar2.xe() == b.a.AD_UNITS.ordinal()) {
if (a.this.aoy.ww().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.aoy.ww(), false, a.this.aoy.getSdk());
}
});
} else {
t.a("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this);
}
} else if (aVar2.xe() == b.a.SELECT_LIVE_NETWORKS.ordinal()) {
if (a.this.aoy.wz().size() <= 0 && a.this.aoy.wA().size() <= 0) {
t.a("Complete Integrations", "Please complete integrations in order to access this.", a.this);
} else if (a.this.aoy.getSdk().Da().isEnabled()) {
t.a("Restart Required", cVar.we(), 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.aoy.wz(), a.this.aoy.wA(), a.this.aoy.getSdk());
}
});
}
} else if (aVar2.xe() != b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) {
if (aVar2.xe() == 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.aoy.wx(), true, a.this.aoy.getSdk());
}
});
}
} else if (!a.this.aoy.getSdk().Da().isEnabled()) {
a.this.getSdk().Da().xA();
t.a("Restart Required", cVar.we(), a.this);
} else if (a.this.aoy.wB().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.aoy.wB(), a.this.aoy.getSdk());
}
});
} else {
t.a("Complete Integrations", "Please complete integrations in order to access this.", a.this);
}
}
});
}
}