Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 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.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;
import com.applovin.sdk.R;
public class a extends com.applovin.impl.mediation.debugger.ui.a {
private b a;
private DataSetObserver b;
private FrameLayout c;
private ListView d;
private com.applovin.impl.adview.a e;
private void a() {
String l = this.a.l();
if (TextUtils.isEmpty(l)) {
return;
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(AssetHelper.DEFAULT_MIME_TYPE);
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.a.h()) || this.a.b()) {
return;
}
this.a.a(true);
runOnUiThread(new Runnable() {
@Override
public void run() {
Utils.showAlert(a.this.a.g(), a.this.a.h(), context);
}
});
}
private void b() {
c();
com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, 16842874);
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.a;
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.c = (FrameLayout) findViewById(16908290);
this.d = (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.a;
if (bVar != null) {
bVar.unregisterDataSetObserver(this.b);
this.a.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
protected void onStart() {
super.onStart();
this.d.setAdapter((ListAdapter) this.a);
b bVar = this.a;
if (bVar == null || bVar.a()) {
return;
}
b();
}
public void setListAdapter(b bVar, final com.applovin.impl.sdk.a aVar) {
DataSetObserver dataSetObserver;
b bVar2 = this.a;
if (bVar2 != null && (dataSetObserver = this.b) != null) {
bVar2.unregisterDataSetObserver(dataSetObserver);
}
this.a = bVar;
this.b = new DataSetObserver() {
@Override
public void onChanged() {
a.this.c();
a aVar2 = a.this;
aVar2.a((Context) aVar2);
}
};
a((Context) this);
this.a.registerDataSetObserver(this.b);
this.a.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 a = aVar2.a();
if (a == b.EnumC0082b.APP_INFO.ordinal() || a == b.EnumC0082b.MAX.ordinal()) {
Utils.showAlert(cVar.l(), cVar.m(), a.this);
} else if (a != b.EnumC0082b.ADS.ordinal()) {
if ((a == b.EnumC0082b.INCOMPLETE_NETWORKS.ordinal() || a == b.EnumC0082b.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());
}
});
}
} else {
if (aVar2.b() == b.a.AD_UNITS.ordinal()) {
if (a.this.a.d().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.a.d(), false, a.this.a.c());
}
};
} else if (aVar2.b() == b.a.SELECT_LIVE_NETWORKS.ordinal()) {
if (a.this.a.i().size() > 0 || a.this.a.j().size() > 0) {
if (!a.this.a.c().ap().a()) {
aVar3 = a.this;
cls = MaxDebuggerTestLiveNetworkActivity.class;
aVar4 = aVar;
aVar5 = new b.a<MaxDebuggerTestLiveNetworkActivity>() {
@Override
public void a(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) {
maxDebuggerTestLiveNetworkActivity.initialize(a.this.a.i(), a.this.a.j(), a.this.a.c());
}
};
}
Utils.showAlert("Restart Required", cVar.m(), a.this);
return;
}
Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this);
return;
} else if (aVar2.b() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) {
if (!a.this.a.c().ap().a()) {
a.this.getSdk().ap().d();
Utils.showAlert("Restart Required", cVar.m(), a.this);
return;
}
if (a.this.a.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.a.k(), a.this.a.c());
}
};
}
Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this);
return;
} else if (aVar2.b() != b.a.INITIALIZATION_AD_UNITS.ordinal()) {
return;
} else {
aVar3 = a.this;
cls = MaxDebuggerAdUnitsListActivity.class;
aVar4 = aVar;
aVar5 = new b.a<MaxDebuggerAdUnitsListActivity>() {
@Override
public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) {
maxDebuggerAdUnitsListActivity.initialize(a.this.a.f(), true, a.this.a.c());
}
};
}
com.applovin.impl.sdk.utils.b.a(aVar3, cls, aVar4, aVar5);
}
}
});
}
}