- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
67 lines
2.4 KiB
Java
67 lines
2.4 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.app.Activity;
|
|
import android.text.TextUtils;
|
|
import com.applovin.impl.tm;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class am extends yl {
|
|
private final List h;
|
|
private final Activity i;
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(pe peVar) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.b, "Auto-initing adapter: " + peVar);
|
|
}
|
|
this.a.L().b(peVar, this.i);
|
|
}
|
|
|
|
public am(List list, Activity activity, com.applovin.impl.sdk.j jVar) {
|
|
super("TaskAutoInitAdapters", jVar, true);
|
|
this.h = list;
|
|
this.i = activity;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (this.h.size() > 0) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
com.applovin.impl.sdk.n nVar = this.c;
|
|
String str = this.b;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("Auto-initing ");
|
|
sb.append(this.h.size());
|
|
sb.append(" adapters");
|
|
sb.append(this.a.l0().c() ? " in test mode" : "");
|
|
sb.append("...");
|
|
nVar.a(str, sb.toString());
|
|
}
|
|
if (TextUtils.isEmpty(this.a.O())) {
|
|
this.a.e("max");
|
|
} else if (!this.a.A0()) {
|
|
com.applovin.impl.sdk.n.h("AppLovinSdk", "Auto-initing adapters for non-MAX mediation provider: " + this.a.O());
|
|
}
|
|
if (this.i == null) {
|
|
com.applovin.impl.sdk.n.h("AppLovinSdk", "\n**********\nAttempting to init 3rd-party SDKs without an Activity instance.\n**********\n");
|
|
}
|
|
for (final pe peVar : this.h) {
|
|
if (peVar.s()) {
|
|
this.a.j0().a(new Runnable() { // from class: com.applovin.impl.am$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
am.this.a(peVar);
|
|
}
|
|
}, tm.b.MEDIATION);
|
|
} else {
|
|
this.a.J();
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.a.J().a(this.b, "Skipping eager auto-init for adapter " + peVar);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|