Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 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 androidx.webkit.internal.AssetHelper;
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.p;
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;
import com.applovin.sdk.R;
public class a extends com.applovin.impl.mediation.debugger.ui.a {
private b f30723a;
private DataSetObserver f30724b;
private FrameLayout f30725c;
private ListView f30726d;
private com.applovin.impl.adview.a f30727e;
public void c() {
com.applovin.impl.adview.a aVar = this.f30727e;
if (aVar != null) {
aVar.b();
this.f30725c.removeView(this.f30727e);
this.f30727e = null;
}
}
@Override
public p getSdk() {
b bVar = this.f30723a;
if (bVar != null) {
return bVar.c();
}
return null;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setTitle("MAX Mediation Debugger");
setContentView(R.layout.mediation_debugger_list_view);
this.f30725c = (FrameLayout) findViewById(android.R.id.content);
this.f30726d = (ListView) findViewById(R.id.listView);
}
@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.f30723a;
if (bVar != null) {
bVar.unregisterDataSetObserver(this.f30724b);
this.f30723a.a((d.a) null);
}
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (R.id.action_share == menuItem.getItemId()) {
a();
return true;
}
return super.onOptionsItemSelected(menuItem);
}
@Override
public void onStart() {
super.onStart();
this.f30726d.setAdapter((ListAdapter) this.f30723a);
b bVar = this.f30723a;
if (bVar != null && !bVar.a()) {
b();
}
}
public void setListAdapter(b bVar, final com.applovin.impl.sdk.a aVar) {
DataSetObserver dataSetObserver;
b bVar2 = this.f30723a;
if (bVar2 != null && (dataSetObserver = this.f30724b) != null) {
bVar2.unregisterDataSetObserver(dataSetObserver);
}
this.f30723a = bVar;
this.f30724b = new DataSetObserver() {
@Override
public void onChanged() {
a.this.c();
a aVar2 = a.this;
aVar2.a((Context) aVar2);
}
};
a((Context) this);
this.f30723a.registerDataSetObserver(this.f30724b);
this.f30723a.a(new d.a() {
@Override
public void a(com.applovin.impl.mediation.debugger.ui.d.a aVar2, final c cVar) {
int a11 = aVar2.a();
if (a11 != b.EnumC0547b.APP_INFO.ordinal() && a11 != b.EnumC0547b.MAX.ordinal()) {
if (a11 == b.EnumC0547b.ADS.ordinal()) {
if (aVar2.b() == b.a.AD_UNITS.ordinal()) {
if (a.this.f30723a.d().size() > 0) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, aVar, new b.a<MaxDebuggerAdUnitsListActivity>() {
@Override
public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.f30723a.d(), false, a.this.f30723a.c());
}
});
return;
} else {
Utils.showAlert("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this);
return;
}
}
if (aVar2.b() == b.a.SELECT_LIVE_NETWORKS.ordinal()) {
if (a.this.f30723a.i().size() <= 0 && a.this.f30723a.j().size() <= 0) {
Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this);
return;
} else if (a.this.f30723a.c().av().a()) {
Utils.showAlert("Restart Required", cVar.m(), a.this);
return;
} else {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestLiveNetworkActivity.class, aVar, new b.a<MaxDebuggerTestLiveNetworkActivity>() {
@Override
public void a(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) {
maxDebuggerTestLiveNetworkActivity.initialize(a.this.f30723a.i(), a.this.f30723a.j(), a.this.f30723a.c());
}
});
return;
}
}
if (aVar2.b() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) {
if (!a.this.f30723a.c().av().a()) {
a.this.getSdk().av().d();
Utils.showAlert("Restart Required", cVar.m(), a.this);
return;
} else if (a.this.f30723a.k().size() > 0) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerTestModeNetworkActivity.class, aVar, new b.a<MaxDebuggerTestModeNetworkActivity>() {
@Override
public void a(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) {
maxDebuggerTestModeNetworkActivity.initialize(a.this.f30723a.k(), a.this.f30723a.c());
}
});
return;
} else {
Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this);
return;
}
}
if (aVar2.b() == b.a.INITIALIZATION_AD_UNITS.ordinal()) {
com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerAdUnitsListActivity.class, aVar, new b.a<MaxDebuggerAdUnitsListActivity>() {
@Override
public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.f30723a.f(), true, a.this.f30723a.c());
}
});
return;
}
return;
}
if ((a11 == b.EnumC0547b.INCOMPLETE_NETWORKS.ordinal() || a11 == b.EnumC0547b.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).f());
}
});
return;
}
return;
}
Utils.showAlert(cVar.l(), cVar.m(), a.this);
}
});
}
private void b() {
c();
com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, android.R.attr.progressBarStyleLarge);
this.f30727e = aVar;
aVar.setColor(-3355444);
this.f30725c.addView(this.f30727e, new FrameLayout.LayoutParams(-1, -1, 17));
this.f30725c.bringChildToFront(this.f30727e);
this.f30727e.a();
}
private void a() {
String l11 = this.f30723a.l();
if (TextUtils.isEmpty(l11)) {
return;
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(AssetHelper.DEFAULT_MIME_TYPE);
intent.putExtra("android.intent.extra.TEXT", l11);
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.f30723a.h()) || this.f30723a.b()) {
return;
}
this.f30723a.a(true);
runOnUiThread(new Runnable() {
@Override
public void run() {
Utils.showAlert(a.this.f30723a.g(), a.this.f30723a.h(), context);
}
});
}
}