- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
158 lines
4.7 KiB
Java
158 lines
4.7 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.text.SpannedString;
|
|
import android.widget.ListAdapter;
|
|
import android.widget.ListView;
|
|
import androidx.core.view.ViewCompat;
|
|
import com.applovin.communicator.AppLovinCommunicatorMessage;
|
|
import com.applovin.impl.dc;
|
|
import com.applovin.impl.ec;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import com.applovin.sdk.R;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class vn extends se {
|
|
private com.applovin.impl.sdk.j a;
|
|
private List b;
|
|
private ec c;
|
|
private List d;
|
|
private ListView f;
|
|
|
|
@Override // com.applovin.impl.se
|
|
public com.applovin.impl.sdk.j getSdk() {
|
|
return this.a;
|
|
}
|
|
|
|
public vn() {
|
|
this.communicatorTopics.add("network_sdk_version_updated");
|
|
}
|
|
|
|
public void initialize(List<ke> list, com.applovin.impl.sdk.j jVar) {
|
|
this.a = jVar;
|
|
this.b = list;
|
|
this.d = a(list);
|
|
a aVar = new a(this, list);
|
|
this.c = aVar;
|
|
aVar.a(new b(list, jVar));
|
|
this.c.notifyDataSetChanged();
|
|
}
|
|
|
|
public class a extends ec {
|
|
final /* synthetic */ List f;
|
|
|
|
@Override // com.applovin.impl.ec
|
|
public dc a() {
|
|
return new dc.b(dc.c.SECTION_CENTERED).d("Select a network to load test ads using your MAX ad unit configuration. Once enabled, this functionality will reset on the next app session.").a();
|
|
}
|
|
|
|
@Override // com.applovin.impl.ec
|
|
public int b() {
|
|
return 1;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ec
|
|
public dc e(int i) {
|
|
return new fj("TEST MODE NETWORKS");
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public a(Context context, List list) {
|
|
super(context);
|
|
this.f = list;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ec
|
|
public int d(int i) {
|
|
return this.f.size();
|
|
}
|
|
|
|
@Override // com.applovin.impl.ec
|
|
public List c(int i) {
|
|
return vn.this.d;
|
|
}
|
|
}
|
|
|
|
public class b implements ec.a {
|
|
final /* synthetic */ List a;
|
|
final /* synthetic */ com.applovin.impl.sdk.j b;
|
|
|
|
public b(List list, com.applovin.impl.sdk.j jVar) {
|
|
this.a = list;
|
|
this.b = jVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ec.a
|
|
public void a(lb lbVar, dc dcVar) {
|
|
List u = ((ke) this.a.get(lbVar.a())).u();
|
|
if (u.equals(this.b.l0().b())) {
|
|
this.b.l0().a((List) null);
|
|
} else {
|
|
this.b.l0().a(u);
|
|
}
|
|
vn.this.c.notifyDataSetChanged();
|
|
}
|
|
}
|
|
|
|
public class c extends cg {
|
|
final /* synthetic */ ke p;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public c(ke keVar, Context context, ke keVar2) {
|
|
super(keVar, context);
|
|
this.p = keVar2;
|
|
}
|
|
|
|
@Override // com.applovin.impl.dc
|
|
public SpannedString k() {
|
|
return StringUtils.createSpannedString(this.p.g(), o() ? ViewCompat.MEASURED_STATE_MASK : -7829368, 18, 1);
|
|
}
|
|
|
|
@Override // com.applovin.impl.cg, com.applovin.impl.dc
|
|
public int d() {
|
|
if (this.p.u().equals(vn.this.a.l0().b())) {
|
|
return R.drawable.applovin_ic_check_mark_borderless;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.applovin.impl.cg, com.applovin.impl.dc
|
|
public int e() {
|
|
if (this.p.u().equals(vn.this.a.l0().b())) {
|
|
return -16776961;
|
|
}
|
|
return super.e();
|
|
}
|
|
}
|
|
|
|
private List a(List list) {
|
|
ArrayList arrayList = new ArrayList(list.size());
|
|
Iterator it = list.iterator();
|
|
while (it.hasNext()) {
|
|
ke keVar = (ke) it.next();
|
|
arrayList.add(new c(keVar, this, keVar));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
@Override // com.applovin.impl.se, android.app.Activity
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
setTitle("Select Test Mode Network");
|
|
setContentView(R.layout.mediation_debugger_list_view);
|
|
ListView listView = (ListView) findViewById(R.id.listView);
|
|
this.f = listView;
|
|
listView.setAdapter((ListAdapter) this.c);
|
|
}
|
|
|
|
@Override // com.applovin.impl.se, com.applovin.communicator.AppLovinCommunicatorSubscriber
|
|
public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
|
|
this.d = a(this.b);
|
|
this.c.notifyDataSetChanged();
|
|
}
|
|
}
|