- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
1578 lines
66 KiB
Java
1578 lines
66 KiB
Java
package com.applovin.impl.mediation;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import android.os.SystemClock;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.lifecycle.Lifecycle;
|
|
import com.applovin.impl.ge;
|
|
import com.applovin.impl.ie;
|
|
import com.applovin.impl.jn;
|
|
import com.applovin.impl.mediation.MediationServiceImpl;
|
|
import com.applovin.impl.mediation.g;
|
|
import com.applovin.impl.pe;
|
|
import com.applovin.impl.sdk.j;
|
|
import com.applovin.impl.sdk.n;
|
|
import com.applovin.impl.sdk.utils.CollectionUtils;
|
|
import com.applovin.impl.sj;
|
|
import com.applovin.impl.tm;
|
|
import com.applovin.impl.ve;
|
|
import com.applovin.impl.yl;
|
|
import com.applovin.impl.zj;
|
|
import com.applovin.mediation.MaxAdFormat;
|
|
import com.applovin.mediation.MaxAdListener;
|
|
import com.applovin.mediation.MaxError;
|
|
import com.applovin.mediation.MaxReward;
|
|
import com.applovin.mediation.adapter.MaxAdViewAdapter;
|
|
import com.applovin.mediation.adapter.MaxAdapter;
|
|
import com.applovin.mediation.adapter.MaxAdapterError;
|
|
import com.applovin.mediation.adapter.MaxAppOpenAdapter;
|
|
import com.applovin.mediation.adapter.MaxInterstitialAdViewAdapter;
|
|
import com.applovin.mediation.adapter.MaxInterstitialAdapter;
|
|
import com.applovin.mediation.adapter.MaxRewardedAdViewAdapter;
|
|
import com.applovin.mediation.adapter.MaxRewardedAdapter;
|
|
import com.applovin.mediation.adapter.MaxRewardedInterstitialAdapter;
|
|
import com.applovin.mediation.adapter.MaxSignalProvider;
|
|
import com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener;
|
|
import com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener;
|
|
import com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener;
|
|
import com.applovin.mediation.adapter.listeners.MaxNativeAdAdapterListener;
|
|
import com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener;
|
|
import com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener;
|
|
import com.applovin.mediation.adapter.listeners.MaxSignalCollectionListener;
|
|
import com.applovin.mediation.adapter.parameters.MaxAdapterInitializationParameters;
|
|
import com.applovin.mediation.adapter.parameters.MaxAdapterResponseParameters;
|
|
import com.applovin.mediation.adapter.parameters.MaxAdapterSignalCollectionParameters;
|
|
import com.applovin.mediation.adapters.MediationAdapterBase;
|
|
import com.applovin.mediation.nativeAds.MaxNativeAd;
|
|
import com.applovin.mediation.nativeAds.MaxNativeAdView;
|
|
import com.applovin.sdk.AppLovinSdkUtils;
|
|
import com.facebook.internal.security.CertificateUtil;
|
|
import com.unity3d.services.ads.gmascar.bridges.mobileads.MobileAdsBridgeBase;
|
|
import java.lang.ref.WeakReference;
|
|
import java.util.HashMap;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class g {
|
|
private final j b;
|
|
private final n c;
|
|
private final String d;
|
|
private final pe e;
|
|
private final String f;
|
|
private MaxAdapter g;
|
|
private String h;
|
|
private ge i;
|
|
private View j;
|
|
private MaxNativeAd k;
|
|
private MaxNativeAdView l;
|
|
private ViewGroup m;
|
|
private MaxAdapterResponseParameters o;
|
|
private final boolean s;
|
|
private final Handler a = new Handler(Looper.getMainLooper());
|
|
private final d n = new d(this, null);
|
|
private final AtomicBoolean p = new AtomicBoolean(true);
|
|
private final AtomicBoolean q = new AtomicBoolean(false);
|
|
private final AtomicBoolean r = new AtomicBoolean(false);
|
|
|
|
public class b implements Runnable {
|
|
public b() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
g.this.g.onDestroy();
|
|
g.this.g = null;
|
|
g.this.j = null;
|
|
g.this.k = null;
|
|
g.this.l = null;
|
|
g.this.m = null;
|
|
}
|
|
}
|
|
|
|
public interface c {
|
|
void a(MaxError maxError);
|
|
|
|
void onSignalCollected(String str);
|
|
}
|
|
|
|
public class d implements MaxInterstitialAdapterListener, MaxAppOpenAdapterListener, MaxRewardedAdapterListener, MaxRewardedInterstitialAdapterListener, MaxAdViewAdapterListener, MaxNativeAdAdapterListener {
|
|
private MediationServiceImpl.d a;
|
|
|
|
private d() {
|
|
}
|
|
|
|
private void b(String str, final Bundle bundle) {
|
|
if (g.this.i.w().compareAndSet(false, true)) {
|
|
a(str, this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda14
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.j(bundle);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
private void c(String str, final Bundle bundle) {
|
|
if (!g.this.i.w().get()) {
|
|
g.this.r.set(true);
|
|
a(str, this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.k(bundle);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.b("MediationAdapterWrapper", g.this.f + ": blocking ad loaded callback for " + g.this.i + " since onAdHidden() has been called");
|
|
}
|
|
g.this.b.p().a(g.this.i, str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void d(Bundle bundle) {
|
|
this.a.a(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void e(Bundle bundle) {
|
|
this.a.a(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void f(Bundle bundle) {
|
|
this.a.a(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void g(Bundle bundle) {
|
|
this.a.a(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void h(Bundle bundle) {
|
|
this.a.c(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void i(Bundle bundle) {
|
|
this.a.c(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void j(Bundle bundle) {
|
|
this.a.e(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void k(Bundle bundle) {
|
|
if (g.this.q.compareAndSet(false, true)) {
|
|
this.a.f(g.this.i, bundle);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdClicked() {
|
|
onAdViewAdClicked(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdCollapsed() {
|
|
onAdViewAdCollapsed(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdDisplayFailed(MaxAdapterError maxAdapterError) {
|
|
onAdViewAdDisplayFailed(maxAdapterError, null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdDisplayed() {
|
|
onAdViewAdDisplayed(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdExpanded() {
|
|
onAdViewAdExpanded(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdHidden() {
|
|
onAdViewAdHidden(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdLoadFailed(MaxAdapterError maxAdapterError) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": adview ad ad failed to load with error: " + maxAdapterError);
|
|
}
|
|
a("onAdViewAdLoadFailed", maxAdapterError);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdLoaded(View view) {
|
|
onAdViewAdLoaded(view, null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdClicked() {
|
|
onAppOpenAdClicked(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdDisplayFailed(MaxAdapterError maxAdapterError) {
|
|
onAppOpenAdDisplayFailed(maxAdapterError, null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdDisplayed() {
|
|
onAppOpenAdDisplayed(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdHidden() {
|
|
onAppOpenAdHidden(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdLoadFailed(MaxAdapterError maxAdapterError) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": app open ad failed to load with error: " + maxAdapterError);
|
|
}
|
|
a("onAppOpenAdLoadFailed", maxAdapterError);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdLoaded() {
|
|
onAppOpenAdLoaded(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdClicked() {
|
|
onInterstitialAdClicked(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdDisplayFailed(MaxAdapterError maxAdapterError) {
|
|
onInterstitialAdDisplayFailed(maxAdapterError, null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdDisplayed() {
|
|
onInterstitialAdDisplayed(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdHidden() {
|
|
onInterstitialAdHidden(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdLoadFailed(MaxAdapterError maxAdapterError) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": interstitial ad failed to load with error " + maxAdapterError);
|
|
}
|
|
a("onInterstitialAdLoadFailed", maxAdapterError);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdLoaded() {
|
|
onInterstitialAdLoaded(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxNativeAdAdapterListener
|
|
public void onNativeAdClicked() {
|
|
onNativeAdClicked(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxNativeAdAdapterListener
|
|
public void onNativeAdDisplayed(Bundle bundle) {
|
|
if (g.this.i.a0()) {
|
|
return;
|
|
}
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": native ad displayed with extra info: " + bundle);
|
|
}
|
|
a("onNativeAdDisplayed", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxNativeAdAdapterListener
|
|
public void onNativeAdLoadFailed(MaxAdapterError maxAdapterError) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": native ad ad failed to load with error: " + maxAdapterError);
|
|
}
|
|
a("onNativeAdLoadFailed", maxAdapterError);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxNativeAdAdapterListener
|
|
public void onNativeAdLoaded(MaxNativeAd maxNativeAd, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": native ad loaded with extra info: " + bundle);
|
|
}
|
|
g.this.k = maxNativeAd;
|
|
c("onNativeAdLoaded", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdClicked() {
|
|
onRewardedAdClicked(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdDisplayFailed(MaxAdapterError maxAdapterError) {
|
|
onRewardedAdDisplayFailed(maxAdapterError, null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdDisplayed() {
|
|
onRewardedAdDisplayed(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdHidden() {
|
|
onRewardedAdHidden(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdLoadFailed(MaxAdapterError maxAdapterError) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": rewarded ad failed to load with error: " + maxAdapterError);
|
|
}
|
|
a("onRewardedAdLoadFailed", maxAdapterError);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdLoaded() {
|
|
onRewardedAdLoaded(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdClicked() {
|
|
onRewardedInterstitialAdClicked(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdDisplayFailed(MaxAdapterError maxAdapterError) {
|
|
onRewardedInterstitialAdDisplayFailed(maxAdapterError, null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdDisplayed() {
|
|
onRewardedInterstitialAdDisplayed(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdHidden() {
|
|
onRewardedInterstitialAdHidden(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdLoadFailed(MaxAdapterError maxAdapterError) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": rewarded ad failed to load with error: " + maxAdapterError);
|
|
}
|
|
a("onRewardedInterstitialAdLoadFailed", maxAdapterError);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdLoaded() {
|
|
onRewardedInterstitialAdLoaded(null);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener, com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onUserRewarded(MaxReward maxReward) {
|
|
onUserRewarded(maxReward, null);
|
|
}
|
|
|
|
public /* synthetic */ d(g gVar, a aVar) {
|
|
this();
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdClicked(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": adview ad clicked with extra info: " + bundle);
|
|
}
|
|
a("onAdViewAdClicked", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.a(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdCollapsed(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": adview ad collapsed");
|
|
}
|
|
a("onAdViewAdCollapsed", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.a();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdDisplayFailed(MaxAdapterError maxAdapterError, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": adview ad failed to display with error: " + maxAdapterError);
|
|
}
|
|
a("onAdViewAdDisplayFailed", maxAdapterError, bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdDisplayed(Bundle bundle) {
|
|
if (g.this.i.a0()) {
|
|
return;
|
|
}
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": adview ad displayed with extra info: " + bundle);
|
|
}
|
|
a("onAdViewAdDisplayed", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdExpanded(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": adview ad expanded");
|
|
}
|
|
a("onAdViewAdExpanded", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda15
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.b(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdHidden(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": adview ad hidden with extra info: " + bundle);
|
|
}
|
|
b("onAdViewAdHidden", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAdViewAdapterListener
|
|
public void onAdViewAdLoaded(View view, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": adview ad loaded with extra info: " + bundle);
|
|
}
|
|
g.this.j = view;
|
|
c("onAdViewAdLoaded", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdClicked(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": app open ad clicked with extra info: " + bundle);
|
|
}
|
|
a("onAppOpenAdClicked", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda9
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.c(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdDisplayFailed(MaxAdapterError maxAdapterError, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": app open ad display failed with error: " + maxAdapterError);
|
|
}
|
|
a("onAppOpenAdDisplayFailed", maxAdapterError, bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdDisplayed(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": app open ad displayed with extra info: " + bundle);
|
|
}
|
|
a("onAppOpenAdDisplayed", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdHidden(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": app open ad hidden with extra info: " + bundle);
|
|
}
|
|
b("onAppOpenAdHidden", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener
|
|
public void onAppOpenAdLoaded(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": app open ad loaded with extra info: " + bundle);
|
|
}
|
|
c("onAppOpenAdLoaded", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdClicked(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": interstitial ad clicked with extra info: " + bundle);
|
|
}
|
|
a("onInterstitialAdClicked", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda13
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.d(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdDisplayFailed(MaxAdapterError maxAdapterError, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": interstitial ad failed to display with error " + maxAdapterError);
|
|
}
|
|
a("onInterstitialAdDisplayFailed", maxAdapterError, bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdDisplayed(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": interstitial ad displayed with extra info: " + bundle);
|
|
}
|
|
a("onInterstitialAdDisplayed", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdHidden(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": interstitial ad hidden with extra info " + bundle);
|
|
}
|
|
b("onInterstitialAdHidden", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener
|
|
public void onInterstitialAdLoaded(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": interstitial ad loaded with extra info: " + bundle);
|
|
}
|
|
c("onInterstitialAdLoaded", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxNativeAdAdapterListener
|
|
public void onNativeAdClicked(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": native ad clicked");
|
|
}
|
|
a("onNativeAdClicked", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.e(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdClicked(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded ad clicked with extra info: " + bundle);
|
|
}
|
|
a("onRewardedAdClicked", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.f(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdDisplayFailed(MaxAdapterError maxAdapterError, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": rewarded ad display failed with error: " + maxAdapterError);
|
|
}
|
|
a("onRewardedAdDisplayFailed", maxAdapterError, bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdDisplayed(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded ad displayed with extra info: " + bundle);
|
|
}
|
|
a("onRewardedAdDisplayed", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdHidden(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded ad hidden with extra info: " + bundle);
|
|
}
|
|
b("onRewardedAdHidden", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener
|
|
public void onRewardedAdLoaded(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded ad loaded with extra info: " + bundle);
|
|
}
|
|
c("onRewardedAdLoaded", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdClicked(final Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded interstitial ad clicked with extra info: " + bundle);
|
|
}
|
|
a("onRewardedInterstitialAdClicked", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.g(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdDisplayFailed(MaxAdapterError maxAdapterError, Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.k("MediationAdapterWrapper", g.this.f + ": rewarded interstitial ad display failed with error: " + maxAdapterError);
|
|
}
|
|
a("onRewardedInterstitialAdDisplayFailed", maxAdapterError, bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdDisplayed(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded interstitial ad displayed with extra info: " + bundle);
|
|
}
|
|
a("onRewardedInterstitialAdDisplayed", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdHidden(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded interstitial ad hidden with extra info: " + bundle);
|
|
}
|
|
b("onRewardedInterstitialAdHidden", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onRewardedInterstitialAdLoaded(Bundle bundle) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": rewarded interstitial ad loaded with extra info: " + bundle);
|
|
}
|
|
c("onRewardedInterstitialAdLoaded", bundle);
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxRewardedAdapterListener, com.applovin.mediation.adapter.listeners.MaxRewardedInterstitialAdapterListener
|
|
public void onUserRewarded(final MaxReward maxReward, final Bundle bundle) {
|
|
if (g.this.i instanceof ie) {
|
|
final ie ieVar = (ie) g.this.i;
|
|
if (ieVar.r0().compareAndSet(false, true)) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.d("MediationAdapterWrapper", g.this.f + ": user was rewarded: " + maxReward);
|
|
}
|
|
a("onUserRewarded", this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.a(ieVar, maxReward, bundle);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void b(Bundle bundle) {
|
|
this.a.d(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void c(Bundle bundle) {
|
|
this.a.a(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(ie ieVar, MaxReward maxReward, Bundle bundle) {
|
|
this.a.a(ieVar, maxReward, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(MediationServiceImpl.d dVar) {
|
|
if (dVar == null) {
|
|
throw new IllegalArgumentException("No listener specified");
|
|
}
|
|
this.a = dVar;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(String str, final MaxError maxError) {
|
|
if (g.this.i.w().get()) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.b("MediationAdapterWrapper", g.this.f + ": blocking ad load failed callback for " + g.this.i + " since onAdHidden() has been called");
|
|
}
|
|
g.this.b.p().a(g.this.i, str);
|
|
return;
|
|
}
|
|
a(str, this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.a(maxError);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(MaxError maxError) {
|
|
if (g.this.q.compareAndSet(false, true)) {
|
|
this.a.onAdLoadFailed(g.this.h, maxError);
|
|
}
|
|
}
|
|
|
|
private void a(String str, final Bundle bundle) {
|
|
if (g.this.i.w().get()) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.b("MediationAdapterWrapper", g.this.f + ": blocking ad displayed callback for " + g.this.i + " since onAdHidden() has been called");
|
|
}
|
|
g.this.b.p().a(g.this.i, str);
|
|
return;
|
|
}
|
|
if (!((Boolean) g.this.b.a(ve.Z7)).booleanValue()) {
|
|
if (g.this.i.u().compareAndSet(false, true)) {
|
|
a(str, this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.i(bundle);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
a(str, this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.h(bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(String str, final MaxError maxError, final Bundle bundle) {
|
|
if (g.this.i.w().get()) {
|
|
n unused = g.this.c;
|
|
if (n.a()) {
|
|
g.this.c.b("MediationAdapterWrapper", g.this.f + ": blocking ad display failed callback for " + g.this.i + " since onAdHidden() has been called");
|
|
}
|
|
g.this.b.p().a(g.this.i, str);
|
|
return;
|
|
}
|
|
a(str, this.a, new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda10
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.a(maxError, bundle);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(MaxError maxError, Bundle bundle) {
|
|
this.a.a(g.this.i, maxError, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(Bundle bundle) {
|
|
this.a.a(g.this.i, bundle);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a() {
|
|
this.a.onAdCollapsed(g.this.i);
|
|
}
|
|
|
|
private void a(final String str, final MaxAdListener maxAdListener, final Runnable runnable) {
|
|
g.this.a.post(new Runnable() { // from class: com.applovin.impl.mediation.g$d$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.d.this.a(runnable, maxAdListener, str);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(Runnable runnable, MaxAdListener maxAdListener, String str) {
|
|
try {
|
|
runnable.run();
|
|
} catch (Throwable th) {
|
|
n.c("MediationAdapterWrapper", "Failed to forward call (" + str + ") to " + (maxAdListener != null ? maxAdListener.getClass().getName() : null), th);
|
|
g.this.b.E().a("MediationAdapterWrapper", str, th, CollectionUtils.hashMap("adapter_class", g.this.e.b()));
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void l() {
|
|
a("destroy");
|
|
b bVar = new b();
|
|
if (((Boolean) this.b.a(ve.b8)).booleanValue()) {
|
|
AppLovinSdkUtils.runOnUiThread(bVar);
|
|
} else {
|
|
bVar.run();
|
|
}
|
|
}
|
|
|
|
public void a(ViewGroup viewGroup) {
|
|
this.m = viewGroup;
|
|
}
|
|
|
|
public void a(MaxNativeAdView maxNativeAdView) {
|
|
this.l = maxNativeAdView;
|
|
}
|
|
|
|
public void a(String str, ge geVar) {
|
|
this.h = str;
|
|
this.i = geVar;
|
|
}
|
|
|
|
public View d() {
|
|
return this.j;
|
|
}
|
|
|
|
public MaxNativeAd e() {
|
|
return this.k;
|
|
}
|
|
|
|
public MaxNativeAdView f() {
|
|
return this.l;
|
|
}
|
|
|
|
public String g() {
|
|
return this.d;
|
|
}
|
|
|
|
public ViewGroup h() {
|
|
return this.m;
|
|
}
|
|
|
|
public String toString() {
|
|
return "MediationAdapterWrapper{adapterTag='" + this.f + "'}";
|
|
}
|
|
|
|
/* renamed from: com.applovin.impl.mediation.g$g, reason: collision with other inner class name */
|
|
public class C0029g extends yl {
|
|
private final WeakReference h;
|
|
|
|
public /* synthetic */ C0029g(g gVar, a aVar) {
|
|
this();
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (g.this.q.get()) {
|
|
return;
|
|
}
|
|
if (g.this.i.b0()) {
|
|
if (n.a()) {
|
|
this.c.a(this.b, g.this.f + " is timing out, considering JS Tag ad loaded: " + g.this.i);
|
|
}
|
|
b(g.this.i);
|
|
return;
|
|
}
|
|
if (n.a()) {
|
|
this.c.b(this.b, g.this.f + " is timing out " + g.this.i + "...");
|
|
}
|
|
b(g.this.i);
|
|
MaxErrorImpl maxErrorImpl = new MaxErrorImpl(-5101, "Adapter timed out");
|
|
d dVar = (d) this.h.get();
|
|
if (dVar != null) {
|
|
dVar.a(this.b, maxErrorImpl);
|
|
}
|
|
}
|
|
|
|
private C0029g() {
|
|
super("TaskTimeoutMediatedAd", g.this.b);
|
|
this.h = new WeakReference(g.this.n);
|
|
}
|
|
|
|
private void b(ge geVar) {
|
|
if (geVar != null) {
|
|
this.a.S().a(geVar);
|
|
}
|
|
}
|
|
}
|
|
|
|
public class h extends yl {
|
|
private final f h;
|
|
|
|
public /* synthetic */ h(g gVar, f fVar, a aVar) {
|
|
this(fVar);
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (this.h.c.get()) {
|
|
return;
|
|
}
|
|
if (n.a()) {
|
|
this.c.b(this.b, g.this.f + " is timing out " + this.h.a + "...");
|
|
}
|
|
g.this.a(new MaxErrorImpl(MaxAdapterError.ERROR_CODE_SIGNAL_COLLECTION_TIMEOUT, "The adapter (" + g.this.f + ") timed out"), this.h);
|
|
}
|
|
|
|
private h(f fVar) {
|
|
super("TaskTimeoutSignalCollection", g.this.b);
|
|
this.h = fVar;
|
|
}
|
|
}
|
|
|
|
public boolean j() {
|
|
return this.q.get() && this.r.get();
|
|
}
|
|
|
|
public boolean k() {
|
|
return this.p.get();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void d(MaxAdapterResponseParameters maxAdapterResponseParameters, Activity activity) {
|
|
((MaxRewardedInterstitialAdapter) this.g).loadRewardedInterstitialAd(maxAdapterResponseParameters, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void e(MaxAdapterResponseParameters maxAdapterResponseParameters, Activity activity) {
|
|
((MediationAdapterBase) this.g).loadNativeAd(maxAdapterResponseParameters, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void d(Activity activity) {
|
|
((MaxInterstitialAdapter) this.g).showInterstitialAd(this.o, activity, this.n);
|
|
}
|
|
|
|
public String i() {
|
|
MaxAdapter maxAdapter = this.g;
|
|
if (maxAdapter == null) {
|
|
return null;
|
|
}
|
|
try {
|
|
return maxAdapter.getSdkVersion();
|
|
} catch (Throwable th) {
|
|
n.c("MediationAdapterWrapper", "Failed to get adapter's SDK version for " + this.d, th);
|
|
this.b.E().a("MediationAdapterWrapper", "sdk_version", th, CollectionUtils.hashMap("adapter_class", this.e.b()));
|
|
a("sdk_version");
|
|
this.b.M().a(this.e.b(), "sdk_version", this.i);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public g(pe peVar, MaxAdapter maxAdapter, boolean z, j jVar) {
|
|
if (peVar == null) {
|
|
throw new IllegalArgumentException("No adapter name specified");
|
|
}
|
|
if (maxAdapter == null) {
|
|
throw new IllegalArgumentException("No adapter specified");
|
|
}
|
|
if (jVar != null) {
|
|
this.d = peVar.c();
|
|
this.g = maxAdapter;
|
|
this.b = jVar;
|
|
this.c = jVar.J();
|
|
this.e = peVar;
|
|
this.f = maxAdapter.getClass().getSimpleName();
|
|
this.s = z;
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("No sdk specified");
|
|
}
|
|
|
|
public void c(final ge geVar, final Activity activity) {
|
|
Runnable runnable;
|
|
if (b(geVar, activity)) {
|
|
if (geVar.a0()) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(geVar, activity);
|
|
}
|
|
};
|
|
} else if (geVar.getFormat() == MaxAdFormat.INTERSTITIAL) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.d(activity);
|
|
}
|
|
};
|
|
} else if (geVar.getFormat() == MaxAdFormat.APP_OPEN) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(activity);
|
|
}
|
|
};
|
|
} else if (geVar.getFormat() == MaxAdFormat.REWARDED) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.b(activity);
|
|
}
|
|
};
|
|
} else if (geVar.getFormat() == MaxAdFormat.REWARDED_INTERSTITIAL) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.c(activity);
|
|
}
|
|
};
|
|
} else {
|
|
throw new IllegalStateException("Failed to show " + geVar + ": " + geVar.getFormat() + " is not a supported ad format");
|
|
}
|
|
a(runnable, geVar);
|
|
}
|
|
}
|
|
|
|
public MediationServiceImpl.d c() {
|
|
return this.n.a;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void c(MaxAdapterResponseParameters maxAdapterResponseParameters, Activity activity) {
|
|
((MaxRewardedAdapter) this.g).loadRewardedAd(maxAdapterResponseParameters, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void c(Activity activity) {
|
|
((MaxRewardedInterstitialAdapter) this.g).showRewardedInterstitialAd(this.o, activity, this.n);
|
|
}
|
|
|
|
private boolean b(ge geVar, Activity activity) {
|
|
if (geVar != null) {
|
|
if (geVar.A() == null) {
|
|
n.h("MediationAdapterWrapper", "Adapter has been garbage collected");
|
|
this.n.a("ad_show", new MaxErrorImpl(-1, "Adapter has been garbage collected"), (Bundle) null);
|
|
return false;
|
|
}
|
|
if (geVar.A() == this) {
|
|
if (activity == null && MaxAdFormat.APP_OPEN != geVar.getFormat()) {
|
|
throw new IllegalArgumentException("No activity specified");
|
|
}
|
|
if (!this.p.get()) {
|
|
String str = "Mediation adapter '" + this.f + "' is disabled. Showing ads with this adapter is disabled.";
|
|
n.h("MediationAdapterWrapper", str);
|
|
this.n.a("ad_show", new MaxErrorImpl(-1, str), (Bundle) null);
|
|
return false;
|
|
}
|
|
if (j()) {
|
|
return true;
|
|
}
|
|
throw new IllegalStateException("Mediation adapter '" + this.f + "' does not have an ad loaded. Please load an ad first");
|
|
}
|
|
throw new IllegalArgumentException("Mediated ad belongs to a different adapter");
|
|
}
|
|
throw new IllegalArgumentException("No mediated ad specified");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void b(MaxAdapterResponseParameters maxAdapterResponseParameters, Activity activity) {
|
|
((MaxAppOpenAdapter) this.g).loadAppOpenAd(maxAdapterResponseParameters, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void b(Activity activity) {
|
|
((MaxRewardedAdapter) this.g).showRewardedAd(this.o, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void b(ViewGroup viewGroup, Lifecycle lifecycle, Activity activity) {
|
|
((MaxRewardedAdViewAdapter) this.g).showRewardedAd(this.o, viewGroup, lifecycle, activity, this.n);
|
|
}
|
|
|
|
public String b() {
|
|
MaxAdapter maxAdapter = this.g;
|
|
if (maxAdapter == null) {
|
|
return null;
|
|
}
|
|
try {
|
|
return maxAdapter.getAdapterVersion();
|
|
} catch (Throwable th) {
|
|
n.c("MediationAdapterWrapper", "Failed to get adapter version for " + this.d, th);
|
|
this.b.E().a("MediationAdapterWrapper", "adapter_version", th, CollectionUtils.hashMap("adapter_class", this.e.b()));
|
|
a("adapter_version");
|
|
this.b.M().a(this.e.b(), "adapter_version", this.i);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
private void b(String str, Runnable runnable) {
|
|
a(str, (MaxAdFormat) null, runnable);
|
|
}
|
|
|
|
public void a(final MaxAdapterSignalCollectionParameters maxAdapterSignalCollectionParameters, final zj zjVar, final Activity activity, c cVar) {
|
|
if (cVar != null) {
|
|
if (!this.p.get()) {
|
|
n.h("MediationAdapterWrapper", "Mediation adapter '" + this.f + "' is disabled. Signal collection ads with this adapter is disabled.");
|
|
cVar.a(new MaxErrorImpl("The adapter (" + this.f + ") is disabled"));
|
|
return;
|
|
}
|
|
final f fVar = new f(zjVar, cVar);
|
|
MaxAdapter maxAdapter = this.g;
|
|
if (maxAdapter instanceof MaxSignalProvider) {
|
|
final MaxSignalProvider maxSignalProvider = (MaxSignalProvider) maxAdapter;
|
|
b("collect_signal", new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda11
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(zjVar, fVar, maxSignalProvider, maxAdapterSignalCollectionParameters, activity);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
a(new MaxErrorImpl(MaxAdapterError.ERROR_CODE_SIGNAL_COLLECTION_NOT_SUPPORTED, "The adapter (" + this.f + ") does not support signal collection"), fVar);
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("No callback specified");
|
|
}
|
|
|
|
public class a implements MaxSignalCollectionListener {
|
|
final /* synthetic */ zj a;
|
|
final /* synthetic */ f b;
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxSignalCollectionListener
|
|
public void onSignalCollected(String str) {
|
|
if (this.a.x() && TextUtils.isEmpty(str)) {
|
|
g.this.a(new MaxErrorImpl("Signal is not a valid string"), this.b);
|
|
} else {
|
|
g.this.a(str, this.b);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.listeners.MaxSignalCollectionListener
|
|
public void onSignalCollectionFailed(String str) {
|
|
g.this.a(new MaxErrorImpl(str), this.b);
|
|
}
|
|
|
|
public a(zj zjVar, f fVar) {
|
|
this.a = zjVar;
|
|
this.b = fVar;
|
|
}
|
|
}
|
|
|
|
private void a(final Runnable runnable, ge geVar) {
|
|
a("show_ad", geVar.getFormat(), new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(runnable);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static class f {
|
|
private final zj a;
|
|
private final c b;
|
|
private final AtomicBoolean c = new AtomicBoolean();
|
|
|
|
public f(zj zjVar, c cVar) {
|
|
this.a = zjVar;
|
|
this.b = cVar;
|
|
}
|
|
}
|
|
|
|
public static class e implements MaxAdapter.OnCompletionListener {
|
|
private final j a;
|
|
private final pe b;
|
|
private final long c;
|
|
private final MaxAdapter.OnCompletionListener d;
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(MaxAdapter.InitializationStatus initializationStatus, String str) {
|
|
this.a.L().a(this.b, SystemClock.elapsedRealtime() - this.c, initializationStatus, str);
|
|
MaxAdapter.OnCompletionListener onCompletionListener = this.d;
|
|
if (onCompletionListener != null) {
|
|
onCompletionListener.onCompletion(initializationStatus, str);
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.mediation.adapter.MaxAdapter.OnCompletionListener
|
|
public void onCompletion(final MaxAdapter.InitializationStatus initializationStatus, final String str) {
|
|
AppLovinSdkUtils.runOnUiThreadDelayed(new Runnable() { // from class: com.applovin.impl.mediation.g$e$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.e.this.a(initializationStatus, str);
|
|
}
|
|
}, this.b.h());
|
|
}
|
|
|
|
public e(j jVar, pe peVar, long j, MaxAdapter.OnCompletionListener onCompletionListener) {
|
|
this.a = jVar;
|
|
this.b = peVar;
|
|
this.c = j;
|
|
this.d = onCompletionListener;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(zj zjVar, f fVar, MaxSignalProvider maxSignalProvider, MaxAdapterSignalCollectionParameters maxAdapterSignalCollectionParameters, Activity activity) {
|
|
a(zjVar, fVar);
|
|
try {
|
|
maxSignalProvider.collectSignal(maxAdapterSignalCollectionParameters, activity, new a(zjVar, fVar));
|
|
} catch (Throwable th) {
|
|
MaxErrorImpl maxErrorImpl = new MaxErrorImpl("Failed signal collection for " + this.d + " due to: " + th);
|
|
n.h("MediationAdapterWrapper", maxErrorImpl.getMessage());
|
|
a(maxErrorImpl, fVar);
|
|
this.b.E().a("MediationAdapterWrapper", "collect_signal", th, CollectionUtils.hashMap("adapter_class", this.e.b()));
|
|
a("collect_signal");
|
|
this.b.M().a(this.e.b(), "collect_signal", this.i);
|
|
}
|
|
if (!fVar.c.get() && zjVar.m() == 0) {
|
|
if (n.a()) {
|
|
this.c.a("MediationAdapterWrapper", "Failing signal collection " + zjVar + " since it has 0 timeout");
|
|
}
|
|
a(new MaxErrorImpl(MaxAdapterError.ERROR_CODE_SIGNAL_COLLECTION_TIMEOUT, "The adapter (" + this.f + ") has 0 timeout"), fVar);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(ge geVar, Runnable runnable) {
|
|
a(this.e, geVar);
|
|
try {
|
|
runnable.run();
|
|
} catch (Throwable th) {
|
|
String str = "Failed to start loading ad for " + this.d + " due to: " + th;
|
|
n.h("MediationAdapterWrapper", str);
|
|
this.n.a("load_ad", new MaxErrorImpl(-1, str));
|
|
this.b.E().a("MediationAdapterWrapper", "load_ad", th, CollectionUtils.hashMap("adapter_class", this.e.b()));
|
|
a("load_ad");
|
|
this.b.M().a(this.e.b(), "load_ad", this.i);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(ge geVar, Activity activity) {
|
|
this.b.F().a((ie) geVar, activity, this.n);
|
|
}
|
|
|
|
public void a(String str, final MaxAdapterResponseParameters maxAdapterResponseParameters, final ge geVar, final Activity activity, MediationServiceImpl.d dVar) {
|
|
final Runnable runnable;
|
|
if (geVar != null) {
|
|
if (this.p.get()) {
|
|
this.o = maxAdapterResponseParameters;
|
|
this.n.a(dVar);
|
|
final MaxAdFormat I = geVar.a0() ? geVar.I() : geVar.getFormat();
|
|
if (I == MaxAdFormat.INTERSTITIAL) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda12
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(maxAdapterResponseParameters, activity);
|
|
}
|
|
};
|
|
} else if (I == MaxAdFormat.APP_OPEN) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda13
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.b(maxAdapterResponseParameters, activity);
|
|
}
|
|
};
|
|
} else if (I == MaxAdFormat.REWARDED) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda14
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.c(maxAdapterResponseParameters, activity);
|
|
}
|
|
};
|
|
} else if (I == MaxAdFormat.REWARDED_INTERSTITIAL) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda15
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.d(maxAdapterResponseParameters, activity);
|
|
}
|
|
};
|
|
} else if (I == MaxAdFormat.NATIVE) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda16
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.e(maxAdapterResponseParameters, activity);
|
|
}
|
|
};
|
|
} else if (I.isAdViewAd()) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda17
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(maxAdapterResponseParameters, I, activity);
|
|
}
|
|
};
|
|
} else {
|
|
throw new IllegalStateException("Failed to load " + geVar + ": " + geVar.getFormat() + " (" + geVar.I() + ") is not a supported ad format");
|
|
}
|
|
a("load_ad", I, new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda18
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(geVar, runnable);
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
String str2 = "Mediation adapter '" + this.f + "' was disabled due to earlier failures. Loading ads with this adapter is disabled.";
|
|
n.h("MediationAdapterWrapper", str2);
|
|
dVar.onAdLoadFailed(str, new MaxErrorImpl(-1, str2));
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("No mediated ad specified");
|
|
}
|
|
|
|
private void a(pe peVar, ge geVar) {
|
|
a(new C0029g(this, null), peVar, geVar);
|
|
}
|
|
|
|
private void a(pe peVar, f fVar) {
|
|
a(new h(this, fVar, null), peVar, (ge) null);
|
|
}
|
|
|
|
private void a(yl ylVar, pe peVar, ge geVar) {
|
|
long m = peVar.m();
|
|
if (m <= 0) {
|
|
if (n.a()) {
|
|
n nVar = this.c;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("Non-positive timeout set for ");
|
|
if (geVar != null) {
|
|
peVar = geVar;
|
|
}
|
|
sb.append(peVar);
|
|
sb.append(", not scheduling a timeout");
|
|
nVar.a("MediationAdapterWrapper", sb.toString());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (n.a()) {
|
|
n nVar2 = this.c;
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append("Setting timeout ");
|
|
sb2.append(m);
|
|
sb2.append("ms for ");
|
|
if (geVar != null) {
|
|
peVar = geVar;
|
|
}
|
|
sb2.append(peVar);
|
|
nVar2.a("MediationAdapterWrapper", sb2.toString());
|
|
}
|
|
this.b.j0().a(ylVar, tm.b.TIMEOUT, m);
|
|
}
|
|
|
|
public void a(ge geVar, final ViewGroup viewGroup, final Lifecycle lifecycle, final Activity activity) {
|
|
Runnable runnable;
|
|
if (b(geVar, activity)) {
|
|
if (geVar.getFormat() == MaxAdFormat.INTERSTITIAL) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda8
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(viewGroup, lifecycle, activity);
|
|
}
|
|
};
|
|
} else if (geVar.getFormat() == MaxAdFormat.REWARDED) {
|
|
runnable = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda9
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.b(viewGroup, lifecycle, activity);
|
|
}
|
|
};
|
|
} else {
|
|
throw new IllegalStateException("Failed to show " + geVar + ": " + geVar.getFormat() + " is not a supported ad format");
|
|
}
|
|
a(runnable, geVar);
|
|
}
|
|
}
|
|
|
|
public void a(final MaxAdapterInitializationParameters maxAdapterInitializationParameters, final Activity activity, final MaxAdapter.OnCompletionListener onCompletionListener) {
|
|
b(MobileAdsBridgeBase.initializeMethodName, new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda10
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(onCompletionListener, maxAdapterInitializationParameters, activity);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(MaxAdapter.OnCompletionListener onCompletionListener, MaxAdapterInitializationParameters maxAdapterInitializationParameters, Activity activity) {
|
|
long elapsedRealtime = SystemClock.elapsedRealtime();
|
|
if (n.a()) {
|
|
this.c.a("MediationAdapterWrapper", "Initializing " + this.f + " on thread: " + Thread.currentThread() + " with 'run_on_ui_thread' value: " + this.e.r());
|
|
}
|
|
this.g.initialize(maxAdapterInitializationParameters, activity, new e(this.b, this.e, elapsedRealtime, onCompletionListener));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(MaxAdapterResponseParameters maxAdapterResponseParameters, Activity activity) {
|
|
((MaxInterstitialAdapter) this.g).loadInterstitialAd(maxAdapterResponseParameters, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(MaxAdapterResponseParameters maxAdapterResponseParameters, MaxAdFormat maxAdFormat, Activity activity) {
|
|
((MaxAdViewAdapter) this.g).loadAdViewAd(maxAdapterResponseParameters, maxAdFormat, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(Activity activity) {
|
|
((MaxAppOpenAdapter) this.g).showAppOpenAd(this.o, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(ViewGroup viewGroup, Lifecycle lifecycle, Activity activity) {
|
|
((MaxInterstitialAdViewAdapter) this.g).showInterstitialAd(this.o, viewGroup, lifecycle, activity, this.n);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(Runnable runnable) {
|
|
try {
|
|
runnable.run();
|
|
} catch (Throwable th) {
|
|
String str = "Failed to start displaying ad for " + this.d + " due to: " + th;
|
|
n.h("MediationAdapterWrapper", str);
|
|
this.n.a("show_ad", new MaxErrorImpl(-1, str), (Bundle) null);
|
|
this.b.E().a("MediationAdapterWrapper", "show_ad", th, CollectionUtils.hashMap("adapter_class", this.e.b()));
|
|
a("show_ad");
|
|
this.b.M().a(this.e.b(), "show_ad", this.i);
|
|
}
|
|
}
|
|
|
|
public void a() {
|
|
if (this.s) {
|
|
return;
|
|
}
|
|
b("destroy", new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda7
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.l();
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(String str, f fVar) {
|
|
if (!fVar.c.compareAndSet(false, true) || fVar.b == null) {
|
|
return;
|
|
}
|
|
fVar.b.onSignalCollected(str);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(MaxError maxError, f fVar) {
|
|
if (!fVar.c.compareAndSet(false, true) || fVar.b == null) {
|
|
return;
|
|
}
|
|
fVar.b.a(maxError);
|
|
}
|
|
|
|
private void a(String str) {
|
|
if (n.a()) {
|
|
this.c.d("MediationAdapterWrapper", "Marking " + this.f + " as disabled due to: " + str);
|
|
}
|
|
this.p.set(false);
|
|
}
|
|
|
|
private void a(final String str, MaxAdFormat maxAdFormat, final Runnable runnable) {
|
|
Runnable runnable2 = new Runnable() { // from class: com.applovin.impl.mediation.g$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
g.this.a(str, runnable);
|
|
}
|
|
};
|
|
if (a(str, maxAdFormat)) {
|
|
this.a.post(runnable2);
|
|
return;
|
|
}
|
|
jn jnVar = new jn(this.b, str + CertificateUtil.DELIMITER + this.e.c(), runnable2);
|
|
if (((Boolean) this.b.a(sj.d0)).booleanValue()) {
|
|
this.b.j0().a(jnVar, this.e);
|
|
} else {
|
|
this.b.j0().a(jnVar);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(String str, Runnable runnable) {
|
|
try {
|
|
if (n.a()) {
|
|
this.c.a("MediationAdapterWrapper", this.f + ": running " + str + "...");
|
|
}
|
|
runnable.run();
|
|
if (n.a()) {
|
|
this.c.a("MediationAdapterWrapper", this.f + ": finished " + str + "");
|
|
}
|
|
} catch (Throwable th) {
|
|
n.c("MediationAdapterWrapper", "Failed operation " + str + " for " + this.d, th);
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("fail_");
|
|
sb.append(str);
|
|
a(sb.toString());
|
|
if (!str.equals("destroy")) {
|
|
this.b.M().a(this.e.b(), str, this.i);
|
|
}
|
|
HashMap<String, String> hashMap = CollectionUtils.hashMap("is_wrapper", "true");
|
|
CollectionUtils.putStringIfValid("adapter_class", this.e.b(), hashMap);
|
|
this.b.E().a("MediationAdapterWrapper", str, th, hashMap);
|
|
}
|
|
}
|
|
|
|
private boolean a(String str, MaxAdFormat maxAdFormat) {
|
|
Boolean shouldShowAdsOnUiThread;
|
|
MaxAdapter maxAdapter = this.g;
|
|
if (maxAdapter == null) {
|
|
return this.e.r();
|
|
}
|
|
if (MobileAdsBridgeBase.initializeMethodName.equals(str)) {
|
|
Boolean shouldInitializeOnUiThread = maxAdapter.shouldInitializeOnUiThread();
|
|
if (shouldInitializeOnUiThread != null) {
|
|
return shouldInitializeOnUiThread.booleanValue();
|
|
}
|
|
} else if ("collect_signal".equals(str)) {
|
|
Boolean shouldCollectSignalsOnUiThread = maxAdapter.shouldCollectSignalsOnUiThread();
|
|
if (shouldCollectSignalsOnUiThread != null) {
|
|
return shouldCollectSignalsOnUiThread.booleanValue();
|
|
}
|
|
} else if ("load_ad".equals(str) && maxAdFormat != null) {
|
|
Boolean shouldLoadAdsOnUiThread = maxAdapter.shouldLoadAdsOnUiThread(maxAdFormat);
|
|
if (shouldLoadAdsOnUiThread != null) {
|
|
return shouldLoadAdsOnUiThread.booleanValue();
|
|
}
|
|
} else if ("show_ad".equals(str) && maxAdFormat != null && (shouldShowAdsOnUiThread = maxAdapter.shouldShowAdsOnUiThread(maxAdFormat)) != null) {
|
|
return shouldShowAdsOnUiThread.booleanValue();
|
|
}
|
|
return this.e.r();
|
|
}
|
|
}
|