正在查看: CallApp v2.226 应用的 p1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 p1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.applovin.impl;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import com.applovin.adview.AppLovinAdView;
import com.applovin.adview.AppLovinFullscreenActivity;
import com.applovin.impl.adview.a;
import com.applovin.impl.adview.e;
import com.applovin.impl.c2;
import com.applovin.impl.r5;
import com.applovin.impl.sdk.AppLovinBroadcastManager;
import com.applovin.impl.sdk.h;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.sdk.AppLovinAd;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdSize;
import com.applovin.sdk.AppLovinAdType;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.applovin.sdk.AppLovinSdkUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.json.JSONException;
import org.json.JSONObject;
public abstract class p1 implements c2.a, AppLovinBroadcastManager.Receiver, a.b {
protected AppLovinAdClickListener A;
protected AppLovinAdDisplayListener B;
protected AppLovinAdVideoPlaybackListener C;
protected final c2 D;
protected t6 E;
protected t6 F;
protected boolean G;
private final d0 H;
protected final com.applovin.impl.sdk.ad.b f9870a;
protected final com.applovin.impl.sdk.j f9871b;
protected final com.applovin.impl.sdk.n f9872c;
protected Activity f9873d;
private final com.applovin.impl.b f9875f;
private final h.a f9876g;
protected AppLovinAdView f9877h;
protected com.applovin.impl.adview.k f9878i;
protected final com.applovin.impl.adview.g f9879j;
protected final com.applovin.impl.adview.g f9880k;
protected long f9885p;
private boolean f9886q;
protected boolean f9887r;
protected int f9888s;
protected boolean f9889t;
protected boolean f9895z;
private final Handler f9874e = new Handler(Looper.getMainLooper());
protected final long f9881l = SystemClock.elapsedRealtime();
private final AtomicBoolean f9882m = new AtomicBoolean();
private final AtomicBoolean f9883n = new AtomicBoolean();
protected long f9884o = -1;
private int f9890u = 0;
private final ArrayList f9891v = new ArrayList();
protected int f9892w = 0;
protected int f9893x = 0;
protected int f9894y = com.applovin.impl.sdk.h.f10354h;
private boolean I = false;
public class a implements AppLovinAdDisplayListener {
public a() {
}
@Override
public void adDisplayed(AppLovinAd appLovinAd) {
com.applovin.impl.sdk.n nVar = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.a("AppLovinFullscreenActivity", "Web content rendered");
}
}
@Override
public void adHidden(AppLovinAd appLovinAd) {
com.applovin.impl.sdk.n nVar = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.a("AppLovinFullscreenActivity", "Closing from WebView");
}
p1.this.c();
}
}
public class b implements h.a {
public b() {
}
@Override
public void a(int i8) {
p1 p1Var = p1.this;
if (p1Var.f9894y != com.applovin.impl.sdk.h.f10354h) {
p1Var.f9895z = true;
}
com.applovin.impl.adview.b f6 = p1Var.f9877h.getController().f();
if (f6 == null) {
com.applovin.impl.sdk.n nVar = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.k("AppLovinFullscreenActivity", "Unable to handle ringer mode change: no valid web view.");
}
} else if (com.applovin.impl.sdk.h.a(i8) && !com.applovin.impl.sdk.h.a(p1.this.f9894y)) {
f6.a("javascript:al_muteSwitchOn();");
} else if (i8 == 2) {
f6.a("javascript:al_muteSwitchOff();");
}
p1.this.f9894y = i8;
}
}
public class c extends com.applovin.impl.b {
final com.applovin.impl.sdk.j f9898a;
public c(com.applovin.impl.sdk.j jVar) {
this.f9898a = jVar;
}
@Override
public void onActivityCreated(Activity activity, Bundle bundle) {
if (!activity.getClass().getName().equals(z6.a(activity.getApplicationContext(), "AppLovinFullscreenActivity", this.f9898a)) || p1.this.f9883n.get()) {
return;
}
com.applovin.impl.sdk.n.h("AppLovinFullscreenActivity", "Dismissing on-screen ad due to app relaunched via launcher.");
try {
p1.this.c();
} catch (Throwable th) {
com.applovin.impl.sdk.n.c("AppLovinFullscreenActivity", "Failed to dismiss ad.", th);
try {
p1.this.k();
} catch (Throwable unused) {
}
}
}
}
public interface d {
void a(p1 p1Var);
void a(String str, Throwable th);
}
public class e implements AppLovinAdClickListener, View.OnClickListener {
private e() {
}
@Override
public void adClicked(AppLovinAd appLovinAd) {
com.applovin.impl.sdk.n nVar = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.a("AppLovinFullscreenActivity", "Clicking through graphic");
}
l2.a(p1.this.A, appLovinAd);
p1.this.f9893x++;
}
@Override
public void onClick(View view) {
p1 p1Var = p1.this;
if (view != p1Var.f9879j || !((Boolean) p1Var.f9871b.a(l4.O1)).booleanValue()) {
com.applovin.impl.sdk.n nVar = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.b("AppLovinFullscreenActivity", "Unhandled click on widget: " + view);
return;
}
return;
}
p1.c(p1.this);
if (p1.this.f9870a.S0()) {
p1.this.c("javascript:al_onCloseButtonTapped(" + p1.this.f9890u + "," + p1.this.f9892w + "," + p1.this.f9893x + ");");
}
List L = p1.this.f9870a.L();
com.applovin.impl.sdk.n nVar2 = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.a("AppLovinFullscreenActivity", "Handling close button tap " + p1.this.f9890u + " with multi close delay: " + L);
}
if (L == null || L.size() <= p1.this.f9890u) {
p1.this.c();
return;
}
p1.this.f9891v.add(Long.valueOf(SystemClock.elapsedRealtime() - p1.this.f9884o));
List J = p1.this.f9870a.J();
if (J != null && J.size() > p1.this.f9890u) {
p1 p1Var2 = p1.this;
p1Var2.f9879j.a((e.a) J.get(p1Var2.f9890u));
}
com.applovin.impl.sdk.n nVar3 = p1.this.f9872c;
if (com.applovin.impl.sdk.n.a()) {
p1.this.f9872c.a("AppLovinFullscreenActivity", "Scheduling next close button with delay: " + L.get(p1.this.f9890u));
}
p1.this.f9879j.setVisibility(8);
p1 p1Var3 = p1.this;
p1Var3.a(p1Var3.f9879j, ((Integer) L.get(p1Var3.f9890u)).intValue(), new n8(this, 1));
}
public e(p1 p1Var, a aVar) {
this();
}
public void a() {
p1.this.f9884o = SystemClock.elapsedRealtime();
}
}
public p1(com.applovin.impl.sdk.ad.b bVar, Activity activity, Map map, com.applovin.impl.sdk.j jVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
this.f9870a = bVar;
this.f9871b = jVar;
this.f9872c = jVar.I();
this.f9873d = activity;
this.A = appLovinAdClickListener;
this.B = appLovinAdDisplayListener;
this.C = appLovinAdVideoPlaybackListener;
c2 c2Var = new c2(activity, jVar);
this.D = c2Var;
c2Var.a(this);
this.H = new d0(jVar);
e eVar = new e(this, null);
if (((Boolean) jVar.a(l4.f9201k2)).booleanValue()) {
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.render_process_gone"));
}
if (((Boolean) jVar.a(l4.f9249q2)).booleanValue()) {
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.al_onPoststitialShow_evaluation_error"));
}
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.custom_tabs_shown"));
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.custom_tabs_hidden"));
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.custom_tabs_failure"));
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.external_redirect_success"));
AppLovinBroadcastManager.registerReceiver(this, new IntentFilter("com.applovin.external_redirect_failure"));
n1 n1Var = new n1(jVar.r0(), AppLovinAdSize.INTERSTITIAL, activity);
this.f9877h = n1Var;
n1Var.setAdClickListener(eVar);
this.f9877h.setAdDisplayListener(new a());
bVar.e().putString("ad_view_address", q7.a(this.f9877h));
this.f9877h.getController().a(this);
x1 x1Var = new x1(map, jVar);
if (x1Var.c()) {
this.f9878i = new com.applovin.impl.adview.k(x1Var, activity);
}
jVar.k().trackImpression(bVar);
List L = bVar.L();
if (bVar.p() >= 0 || L != null) {
com.applovin.impl.adview.g gVar = new com.applovin.impl.adview.g(bVar.n(), activity);
this.f9879j = gVar;
gVar.setVisibility(8);
gVar.setOnClickListener(eVar);
} else {
this.f9879j = null;
}
com.applovin.impl.adview.g gVar2 = new com.applovin.impl.adview.g(e.a.WHITE_ON_TRANSPARENT, activity);
this.f9880k = gVar2;
gVar2.setOnClickListener(new s8(this, 1));
if (bVar.W0()) {
this.f9876g = new b();
} else {
this.f9876g = null;
}
this.f9875f = new c(jVar);
}
public static int c(p1 p1Var) {
int i8 = p1Var.f9890u;
p1Var.f9890u = i8 + 1;
return i8;
}
public void j() {
if (this.f9870a.E0().getAndSet(true)) {
return;
}
this.f9871b.j0().a((w4) new a6(this.f9870a, this.f9871b), r5.b.OTHER);
}
private void y() {
if (this.f9876g != null) {
this.f9871b.p().a(this.f9876g);
}
if (this.f9875f != null) {
this.f9871b.e().a(this.f9875f);
}
}
public abstract void a(long j8);
public abstract void a(ViewGroup viewGroup);
public void k() {
if (this.f9883n.compareAndSet(false, true)) {
l2.b(this.B, this.f9870a);
this.f9871b.D().b(this.f9870a);
this.f9871b.g().a(y1.f11011o, this.f9870a);
}
}
public abstract void l();
public void m() {
t6 t6Var = this.E;
if (t6Var != null) {
t6Var.d();
}
}
public void n() {
t6 t6Var = this.E;
if (t6Var != null) {
t6Var.e();
}
}
public void o() {
com.applovin.impl.adview.b f6;
if (this.f9877h == null || !this.f9870a.w0() || (f6 = this.f9877h.getController().f()) == null) {
return;
}
this.H.a(f6, new d8(this, 5));
}
@Override
public void onReceive(Intent intent, Map map) {
String action = intent.getAction();
if (action == null) {
return;
}
switch (action) {
case "com.applovin.al_onPoststitialShow_evaluation_error":
e();
break;
case "com.applovin.external_redirect_success":
case "com.applovin.external_redirect_failure":
b(action, map);
break;
case "com.applovin.custom_tabs_failure":
case "com.applovin.custom_tabs_hidden":
case "com.applovin.custom_tabs_shown":
a(action, map);
break;
case "com.applovin.render_process_gone":
if (!this.f9887r) {
f();
break;
}
break;
}
}
public void p() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onBackPressed()");
}
if (this.I) {
c();
}
if (this.f9870a.S0()) {
c("javascript:onBackPressed();");
}
}
public void q() {
AppLovinAdView appLovinAdView = this.f9877h;
if (appLovinAdView != null) {
ViewParent parent = appLovinAdView.getParent();
this.f9877h.destroy();
this.f9877h = null;
if ((parent instanceof ViewGroup) && i()) {
((ViewGroup) parent).removeAllViews();
}
}
l();
k();
this.A = null;
this.B = null;
this.C = null;
this.f9873d = null;
AppLovinBroadcastManager.unregisterReceiver(this);
}
public void r() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onPause()");
}
b("javascript:al_onAppPaused();");
if (this.D.b()) {
this.D.a();
}
m();
}
public void s() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onResume()");
}
b("javascript:al_onAppResumed();");
n();
if (this.D.b()) {
this.D.a();
}
}
public void t() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onStop()");
}
}
public abstract void u();
public abstract void v();
public void w() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "Setting ad fully watched");
}
this.G = true;
}
public abstract void x();
public void b(View view) {
c();
}
public void c(boolean z8) {
a(z8, ((Long) this.f9871b.a(l4.f9185i2)).longValue());
l2.a(this.B, this.f9870a);
this.f9871b.D().a(this.f9870a);
if (this.f9870a.hasVideoUrl() || h()) {
l2.a(this.C, this.f9870a);
}
new a4(this.f9873d).a(this.f9870a);
this.f9870a.setHasShown(true);
}
public void e() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "Handling al_onPoststitialShow evaluation error");
}
}
public void f() {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "Handling render process crash");
}
this.f9887r = true;
}
public boolean g() {
return this.f9886q;
}
public boolean h() {
return AppLovinAdType.INCENTIVIZED == this.f9870a.getType();
}
public boolean i() {
return this.f9873d instanceof AppLovinFullscreenActivity;
}
public static void a(com.applovin.impl.sdk.ad.b bVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener, Map map, com.applovin.impl.sdk.j jVar, Activity activity, d dVar) {
p1 s1Var;
if (bVar instanceof a7) {
try {
s1Var = new s1(bVar, activity, map, jVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
} catch (Throwable th) {
dVar.a("Failed to create FullscreenVastVideoAdPresenter with sdk: " + jVar + " and throwable: " + th.getMessage(), th);
return;
}
} else if (bVar.hasVideoUrl()) {
try {
s1Var = new t1(bVar, activity, map, jVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
} catch (Throwable th2) {
dVar.a("Failed to create FullscreenVideoAdPresenter with sdk: " + jVar + " and throwable: " + th2.getMessage(), th2);
return;
}
} else {
try {
s1Var = new q1(bVar, activity, map, jVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
} catch (Throwable th3) {
dVar.a("Failed to create FullscreenGraphicAdPresenter with sdk: " + jVar + " and throwable: " + th3.getMessage(), th3);
return;
}
}
s1Var.y();
dVar.a(s1Var);
}
public void b(boolean z8) {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onWindowFocusChanged(boolean) - " + z8);
}
b("javascript:al_onWindowFocusChanged( " + z8 + " );");
t6 t6Var = this.F;
if (t6Var != null) {
if (z8) {
t6Var.e();
} else {
t6Var.d();
}
}
}
public int d() {
int r8 = this.f9870a.r();
return (r8 <= 0 && ((Boolean) this.f9871b.a(l4.f9177h2)).booleanValue()) ? this.f9888s + 1 : r8;
}
public void b(String str) {
if (this.f9870a.A0()) {
a(str, 0L);
}
}
public static void b(com.applovin.impl.adview.g gVar, Runnable runnable) {
q7.a(gVar, 400L, new i9(gVar, runnable, 2));
}
public void c() {
this.f9886q = true;
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "dismiss()");
}
com.applovin.impl.sdk.ad.b bVar = this.f9870a;
if (bVar != null) {
bVar.getAdEventTracker().f();
}
this.f9874e.removeCallbacksAndMessages(null);
a("javascript:al_onPoststitialDismiss();", this.f9870a != null ? r0.C() : 0L);
k();
this.H.b();
if (this.f9876g != null) {
this.f9871b.p().b(this.f9876g);
}
if (this.f9875f != null) {
this.f9871b.e().b(this.f9875f);
}
if (i()) {
this.f9873d.finish();
return;
}
this.f9871b.I();
if (com.applovin.impl.sdk.n.a()) {
this.f9871b.I().a("AppLovinFullscreenActivity", "Fullscreen ad shown in container view dismissed, destroying the presenter.");
}
q();
}
public void b(long j8) {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.a("AppLovinFullscreenActivity", "Scheduling report reward in " + TimeUnit.MILLISECONDS.toSeconds(j8) + " seconds...");
}
this.E = t6.a(j8, this.f9871b, new n8(this, 6));
}
private void b(String str, Map map) {
String str2;
str.getClass();
if (str.equals("com.applovin.external_redirect_success")) {
str2 = "success";
} else if (!str.equals("com.applovin.external_redirect_failure")) {
return;
} else {
str2 = "failure";
}
a("al_onExternalRedirectEvent", str2, map);
}
public boolean a(boolean z8) {
List a8 = z6.a(z8, this.f9870a, this.f9871b, this.f9873d);
if (a8.isEmpty()) {
return false;
}
if (((Boolean) this.f9871b.a(l4.f9212l5)).booleanValue()) {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.b("AppLovinFullscreenActivity", "Dismissing ad due to missing resources: " + a8);
}
if (((Boolean) this.f9871b.a(l4.f9236o5)).booleanValue()) {
AppLovinAdDisplayListener appLovinAdDisplayListener = this.B;
if (appLovinAdDisplayListener instanceof f2) {
l2.a(appLovinAdDisplayListener, "Missing ad resources");
}
c();
} else {
h2.a(this.f9870a, this.B, "Missing ad resources", null, null);
c();
}
HashMap hashMap = new HashMap();
CollectionUtils.putStringIfValid("error_message", "Missing ad resources: " + a8, hashMap);
CollectionUtils.putStringIfValid("details", "Failing ad display", hashMap);
this.f9871b.A().a(y1.f11002j0, "missingCachedAdResources", hashMap);
return ((Boolean) this.f9871b.a(l4.f9228n5)).booleanValue();
}
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.b("AppLovinFullscreenActivity", "Streaming ad due to missing ad resources: " + a8);
}
this.f9870a.J0();
HashMap hashMap2 = new HashMap();
CollectionUtils.putStringIfValid("error_message", "Missing ad resources: " + a8, hashMap2);
CollectionUtils.putStringIfValid("details", "Streaming ad", hashMap2);
this.f9871b.A().a(y1.f11002j0, "missingCachedAdResources", hashMap2);
return false;
}
public void c(String str) {
a(str, 0L);
}
public static void c(com.applovin.impl.adview.g gVar, Runnable runnable) {
AppLovinSdkUtils.runOnUiThread(new i9(gVar, runnable, 1));
}
public void a(Configuration configuration) {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onConfigurationChanged(Configuration) - " + configuration);
}
}
public void a(int i8, KeyEvent keyEvent) {
if (this.f9872c != null && com.applovin.impl.sdk.n.a()) {
this.f9872c.d("AppLovinFullscreenActivity", "onKeyDown(int, KeyEvent) - " + i8 + ", " + keyEvent);
}
com.applovin.impl.sdk.ad.b bVar = this.f9870a;
if (bVar == null || !bVar.V0()) {
return;
}
if (i8 == 24 || i8 == 25) {
c("javascript:al_onVolumeChangedEvent('" + (i8 == 24 ? "volume_up" : "volume_down") + "');");
}
}
public void a(String str, long j8) {
if (j8 < 0 || !StringUtils.isValidString(str)) {
return;
}
a(new i8(16, this, str), j8);
}
public void a(String str) {
com.applovin.impl.adview.b f6;
AppLovinAdView appLovinAdView = this.f9877h;
if (appLovinAdView == null || (f6 = appLovinAdView.getController().f()) == null) {
return;
}
f6.a(str);
}
public void a(com.applovin.impl.adview.g gVar, long j8, Runnable runnable) {
if (j8 >= ((Long) this.f9871b.a(l4.N1)).longValue()) {
return;
}
this.F = t6.a(TimeUnit.SECONDS.toMillis(j8), this.f9871b, new i9(gVar, runnable, 0));
}
public static void a(com.applovin.impl.adview.g gVar, Runnable runnable) {
gVar.bringToFront();
runnable.run();
}
public void a(int i8, boolean z8, boolean z9, long j8) {
if (this.f9882m.compareAndSet(false, true)) {
if (this.f9870a.hasVideoUrl() || h()) {
l2.a(this.C, this.f9870a, i8, z9);
}
long elapsedRealtime = SystemClock.elapsedRealtime() - this.f9881l;
this.f9871b.k().trackVideoEnd(this.f9870a, TimeUnit.MILLISECONDS.toSeconds(elapsedRealtime), i8, z8);
long elapsedRealtime2 = this.f9884o != -1 ? SystemClock.elapsedRealtime() - this.f9884o : -1L;
this.f9871b.k().trackFullScreenAdClosed(this.f9870a, elapsedRealtime2, this.f9891v, j8, this.f9895z, this.f9894y);
if (com.applovin.impl.sdk.n.a()) {
com.applovin.impl.sdk.n nVar = this.f9872c;
StringBuilder sb = new StringBuilder("Video ad ended at percent: ");
sb.append(i8);
sb.append("%, elapsedTime: ");
sb.append(elapsedRealtime);
androidx.fragment.app.n.z(sb, "ms, skipTimeMillis: ", j8, "ms, closeTimeMillis: ");
nVar.a("AppLovinFullscreenActivity", a1.d0.r(sb, elapsedRealtime2, "ms"));
}
}
}
@Override
public void a(com.applovin.impl.adview.a aVar) {
if (com.applovin.impl.sdk.n.a()) {
this.f9872c.a("AppLovinFullscreenActivity", "Fully watched from ad web view...");
}
this.G = true;
}
public void a(boolean z8, long j8) {
if (this.f9870a.K0()) {
a(z8 ? "javascript:al_mute();" : "javascript:al_unmute();", j8);
}
}
public void a(View view) {
if (((Boolean) this.f9871b.a(l4.J0)).booleanValue()) {
this.f9871b.C().c(this.f9870a, com.applovin.impl.sdk.j.n());
}
Map b6 = a2.b(this.f9870a);
b6.putAll(a2.a(this.f9870a));
this.f9871b.A().d(y1.f11000i0, b6);
if (((Boolean) this.f9871b.a(l4.H5)).booleanValue()) {
w();
}
if (((Boolean) this.f9871b.a(l4.D5)).booleanValue()) {
c();
return;
}
this.I = ((Boolean) this.f9871b.a(l4.E5)).booleanValue();
if (((Boolean) this.f9871b.a(l4.F5)).booleanValue()) {
x();
}
}
private void a(String str, Map map) {
String str2;
str.getClass();
switch (str) {
case "com.applovin.custom_tabs_failure":
str2 = "failure";
break;
case "com.applovin.custom_tabs_hidden":
str2 = "hidden";
break;
case "com.applovin.custom_tabs_shown":
str2 = "shown";
break;
default:
return;
}
a("al_onInAppBrowserEvent", str2, map);
}
private void a(String str, String str2, Map map) {
JSONObject jSONObject;
try {
jSONObject = CollectionUtils.toJson(map);
} catch (JSONException unused) {
jSONObject = new JSONObject();
}
StringBuilder t8 = androidx.fragment.app.n.t("javascript:", str, "('", str2, "',");
t8.append(jSONObject);
t8.append(");");
c(t8.toString());
}
public void a(Runnable runnable, long j8) {
AppLovinSdkUtils.runOnUiThreadDelayed(runnable, j8, this.f9874e);
}
}