正在查看: OLX India v19.42.007 应用的 InterstitialActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 InterstitialActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.jio.jioads.interstitial;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowInsetsController;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.core.view.c3;
import androidx.core.view.f3;
import androidx.core.view.u0;
import androidx.core.view.u2;
import com.google.firebase.messaging.Constants;
import com.jio.jioads.adinterfaces.JioAdError;
import com.jio.jioads.adinterfaces.JioAdView;
import com.jio.jioads.adinterfaces.JioAds;
import com.jio.jioads.adinterfaces.o1;
import com.jio.jioads.adinterfaces.q0;
import com.jio.jioads.p000native.renderer.NativeAdViewRenderer;
import com.jio.jioads.util.Utility;
import com.jio.jioads.utils.Constants;
import java.net.CookieHandler;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.text.StringsKt;
import org.json.JSONObject;
@Metadata
@SourceDebugExtension
public final class InterstitialActivity extends androidx.appcompat.app.d {
public static final j Companion = new j();
public static boolean P;
public NativeAdViewRenderer A;
public com.jio.jioads.instream.audio.k B;
public ViewGroup C;
public n D;
public com.jio.jioads.instreamads.vastparser.model.m E;
public View F;
public n G;
public Integer H;
public Integer I;
public Integer J;
public View K;
public TextView L;
public boolean M;
public CountDownTimer N;
public boolean b;
public JioAdView.ORIENTATION_TYPE c;
public boolean d;
public RelativeLayout e;
public m i;
public com.jio.jioads.controller.b j;
public com.jio.jioads.common.c k;
public com.jio.jioads.videomodule.d0 l;
public boolean m;
public com.jio.jioads.common.b n;
public s o;
public TextView p;
public String q;
public TextView r;
public TextView s;
public Drawable[] t;
public String u;
public boolean x;
public String a = "p";
public String f = "";
public String g = "";
public HashMap h = new HashMap();
public long v = -1;
public int w = -1;
public Integer y = -1;
public Integer z = -1;
public final a O = new a();
public static final class a implements com.jio.jioads.videomodule.callback.a {
public a() {
}
@Override
public final boolean canPrepareNextVideoAd(int i) {
return true;
}
@Override
public final int getBitRate() {
Integer e;
com.jio.jioads.common.b bVar = InterstitialActivity.this.n;
if (bVar == null || (e = bVar.e()) == null) {
return 0;
}
return e.intValue();
}
@Override
public final void onAdChange(String str, int i) {
InterstitialActivity.this.getClass();
}
@Override
public final void onAdClick() {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).g(JioAdView.AdState.INTERACTED);
}
com.jio.jioads.controller.b bVar2 = InterstitialActivity.this.j;
if (bVar2 != null) {
((o1) bVar2).a();
}
}
@Override
public final void onAdCollapsed() {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).g(JioAdView.AdState.COLLAPSED);
}
com.jio.jioads.controller.b bVar2 = InterstitialActivity.this.j;
if (bVar2 != null) {
((o1) bVar2).x();
}
}
@Override
public final void onAdComplete(java.lang.String r3, int r4, int r5, int r6, java.lang.Integer r7) {
throw new UnsupportedOperationException("Method not decompiled: com.jio.jioads.interstitial.InterstitialActivity.a.onAdComplete(java.lang.String, int, int, int, java.lang.Integer):void");
}
@Override
public final void onAdExpand() {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).g(JioAdView.AdState.EXPANDED);
}
com.jio.jioads.controller.b bVar2 = InterstitialActivity.this.j;
if (bVar2 != null) {
((o1) bVar2).A();
}
}
@Override
public final void onAdLoaded(String str, int i) {
}
@Override
public final void onAdPrepared(String str) {
}
@Override
public final void onAdProgress(String str, long j, long j2) {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).o(str, j2, j);
}
}
@Override
public final void onAdSkippable(String str, int i, int i2, int i3, Integer num) {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).O();
}
InterstitialActivity.this.I = Integer.valueOf(i3);
InterstitialActivity.this.H = Integer.valueOf(i2);
InterstitialActivity.this.J = num;
InterstitialActivity.this.allowBackPress();
}
@Override
public final void onAdSkipped(int i, int i2, Integer num) {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).g(JioAdView.AdState.CLOSED);
}
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar2 = InterstitialActivity.this.n;
sb.append(bVar2 != null ? bVar2.w() : null);
sb.append(": onAdClose servedDuration : ");
sb.append(i);
sb.append(", totalDuration: ");
sb.append(i2);
sb.append(", rewardSkipValue: ");
sb.append(num);
String sb2 = sb.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb2);
}
InterstitialActivity.Companion.getClass();
if (InterstitialActivity.P) {
InterstitialActivity.this.closeAd(Integer.valueOf(i2), Integer.valueOf(i), num);
}
}
@Override
public final void onAdStarted(String str, int i) {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).G();
}
com.jio.jioads.common.c cVar = InterstitialActivity.this.k;
if (cVar != null) {
((com.jio.jioads.controller.h) cVar).a.i0();
}
}
@Override
public final void onAllAdMediaProgress(long j, long j2) {
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).d(j, j2);
}
}
@Override
public final void onFailedToLoad(JioAdError jioAdError, boolean z, com.jio.jioads.cdnlogging.d dVar, String str, String str2, String str3) {
com.jio.jioads.cdnlogging.d dVar2 = com.jio.jioads.cdnlogging.d.a;
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
((o1) bVar).f(jioAdError, false, dVar2, str, "InstreamVideo: ".concat(str2), str3, null);
}
}
@Override
public final void onMediaPlaybackChange(com.jio.jioads.videomodule.b bVar) {
JioAdView.MediaPlayBack mediaPlayBack;
int ordinal = bVar.ordinal();
if (ordinal == 0) {
mediaPlayBack = JioAdView.MediaPlayBack.RESUME;
} else if (ordinal == 1) {
mediaPlayBack = JioAdView.MediaPlayBack.PAUSE;
} else if (ordinal == 2) {
mediaPlayBack = JioAdView.MediaPlayBack.MUTE;
} else {
if (ordinal != 3) {
throw new NoWhenBranchMatchedException();
}
mediaPlayBack = JioAdView.MediaPlayBack.UNMUTE;
}
com.jio.jioads.controller.b bVar2 = InterstitialActivity.this.j;
if (bVar2 != null) {
((o1) bVar2).h(mediaPlayBack);
}
}
@Override
public final void onMediaPrepareTimeOut(String str, int i) {
JioAdError a = com.jio.jioads.adinterfaces.b0.a(JioAdError.Companion, JioAdError.JioAdErrorType.ERROR_TIMEOUT, "Video Ad Timeout Error");
com.jio.jioads.controller.b bVar = InterstitialActivity.this.j;
if (bVar != null) {
com.jio.jioads.cdnlogging.d dVar = com.jio.jioads.cdnlogging.d.a;
StringBuilder sb = new StringBuilder("JioVideoView-Player failed to prepare because of timeout for ads ");
com.jio.jioads.common.b bVar2 = InterstitialActivity.this.n;
sb.append(bVar2 != null ? bVar2.E() : null);
((o1) bVar).f(a, false, dVar, str, "JioVideoView-adFailedToLoad", sb.toString(), null);
}
}
@Override
public final void onPlayAgain(String str, int i) {
}
@Override
public final void onPlayerError(int i, String str) {
}
@Override
public final void onStartPrepare(String str, int i) {
}
@Override
public final void playAgainFromMediaPlayer(String str, int i) {
}
}
public static final void a(View view) {
}
public static final void access$fireViewableImpression(InterstitialActivity interstitialActivity) {
String str;
com.jio.jioads.common.c cVar = interstitialActivity.k;
if (cVar != null) {
str = ((com.jio.jioads.controller.h) cVar).a(Constants.HeaderKeys.X_Jio_VIM.getKey());
} else {
str = null;
}
if (TextUtils.isEmpty(str) || interstitialActivity.M || interstitialActivity.N != null) {
return;
}
interstitialActivity.N = new r(interstitialActivity, str).start();
}
public static final kotlin.Pair access$getInterstitialCompanionTrackingUrls(com.jio.jioads.interstitial.InterstitialActivity r3) {
throw new UnsupportedOperationException("Method not decompiled: com.jio.jioads.interstitial.InterstitialActivity.access$getInterstitialCompanionTrackingUrls(com.jio.jioads.interstitial.InterstitialActivity):kotlin.Pair");
}
public static final void access$showEndCard(InterstitialActivity interstitialActivity, String str, List list, List list2) {
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = interstitialActivity.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, ": showEndCard called", "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", a2);
}
RelativeLayout relativeLayout = interstitialActivity.e;
if (relativeLayout != null) {
relativeLayout.removeAllViews();
if (Utility.INSTANCE.isWebViewEnabled()) {
interstitialActivity.y = -1;
interstitialActivity.z = -1;
interstitialActivity.a(str, list, list2);
}
}
}
public static void closeAd$default(InterstitialActivity interstitialActivity, Integer num, Integer num2, Integer num3, int i, Object obj) {
if ((i & 1) != 0) {
num = interstitialActivity.I;
}
if ((i & 2) != 0) {
num2 = interstitialActivity.H;
}
if ((i & 4) != 0) {
num3 = interstitialActivity.J;
}
interstitialActivity.closeAd(num, num2, num3);
}
public final void allowBackPress() {
this.x = true;
}
public final String b() {
List list;
com.jio.jioads.instreamads.vastparser.model.k kVar;
Integer e;
try {
com.jio.jioads.instreamads.vastparser.model.m mVar = this.E;
if (mVar != null) {
com.jio.jioads.common.b bVar = this.n;
list = mVar.e(this, (bVar == null || (e = bVar.e()) == null) ? 0 : e.intValue(), new p(this));
} else {
list = null;
}
if (list == null || (kVar = (com.jio.jioads.instreamads.vastparser.model.k) CollectionsKt.i0(list)) == null) {
return null;
}
return kVar.c;
} catch (Exception unused) {
return null;
}
}
public final java.lang.String c() {
throw new UnsupportedOperationException("Method not decompiled: com.jio.jioads.interstitial.InterstitialActivity.c():java.lang.String");
}
public final void closeAd(Integer num, Integer num2, Integer num3) {
boolean z = false;
P = false;
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, ": Inside closeAd of InterstitialAdActivity", "message");
JioAds.Companion companion = JioAds.Companion;
JioAds.LogLevel logLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease = companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
JioAds.LogLevel logLevel = JioAds.LogLevel.NONE;
if (logLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease != logLevel) {
Log.d("merc", a2);
}
NativeAdViewRenderer nativeAdViewRenderer = this.A;
if (nativeAdViewRenderer != null) {
nativeAdViewRenderer.clearAllData$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
}
if (num == null || num2 == null) {
com.jio.jioads.controller.b bVar2 = this.j;
if (bVar2 != null) {
((o1) bVar2).g(JioAdView.AdState.CLOSED);
}
com.jio.jioads.controller.b bVar3 = this.j;
if (bVar3 != null) {
((o1) bVar3).s();
}
} else {
int intValue = num2.intValue();
int intValue2 = num.intValue();
if (com.jio.jioads.utils.e.a(this.h) == 9 && num3 != null && ((num3.intValue() == 0 && intValue == intValue2) || intValue >= num3.intValue())) {
z = true;
}
com.jio.jioads.controller.b bVar4 = this.j;
if (bVar4 != null) {
((o1) bVar4).g(JioAdView.AdState.CLOSED);
}
com.jio.jioads.controller.b bVar5 = this.j;
if (bVar5 != null) {
((o1) bVar5).r(Intrinsics.d(num2, num), z);
}
}
y yVar = y.k;
if (yVar != null) {
if (yVar.b != null) {
yVar.b = null;
}
if (yVar.d != null) {
yVar.d = null;
}
if (yVar.e != null) {
yVar.e = null;
}
if (yVar.c != null) {
yVar.c = null;
}
if (yVar.f != null) {
yVar.f = null;
}
if (yVar.i != null) {
yVar.i = null;
}
if (yVar.j != null) {
yVar.j = null;
}
}
RelativeLayout relativeLayout = this.e;
com.jio.jioads.common.m mVar = relativeLayout instanceof com.jio.jioads.common.m ? (com.jio.jioads.common.m) relativeLayout : null;
if (mVar != null) {
mVar.f = null;
}
if (relativeLayout != null) {
relativeLayout.removeAllViews();
}
com.jio.jioads.videomodule.d0 d0Var = this.l;
if (d0Var != null) {
d0Var.l();
}
this.l = null;
com.jio.jioads.instream.audio.k kVar = this.B;
if (kVar != null) {
kVar.n();
}
com.jio.jioads.instream.audio.k kVar2 = this.B;
if (kVar2 != null) {
kVar2.x();
}
this.B = null;
this.e = null;
this.i = null;
this.j = null;
this.n = null;
if (isFinishing()) {
return;
}
StringBuilder sb2 = new StringBuilder();
com.jio.jioads.common.b bVar6 = this.n;
String a3 = q0.a(sb2, bVar6 != null ? bVar6.w() : null, ": calling finish in InterstitialAdActivity", "message");
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", a3);
}
finish();
}
public final void d() {
TextView textView;
Drawable[] drawableArr;
TextView textView2;
TextView textView3;
com.jio.jioads.common.b bVar = this.n;
if (bVar == null || bVar.F() != 0) {
com.jio.jioads.common.b bVar2 = this.n;
Integer K = bVar2 != null ? bVar2.K() : null;
if (K != null && K.intValue() > 0) {
com.jio.jioads.util.y.b(K.intValue() * 1000, new o(this));
}
}
TextView textView4 = this.r;
final TextView textView5 = textView4 == null ? this.p : textView4;
TextView textView6 = this.p;
if (textView6 != null) {
textView6.setVisibility(textView4 == null ? 0 : 8);
}
if (this.r == null) {
Utility utility = Utility.INSTANCE;
if (utility.getCurrentUIModeType(this) != 4 && (textView3 = this.p) != null) {
textView3.setText("");
}
if (this.D == n.e && (drawableArr = this.t) != null && drawableArr.length >= 4) {
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar3 = this.n;
sb.append(bVar3 != null ? bVar3.w() : null);
sb.append(": skipAdDrawables ");
Drawable[] drawableArr2 = this.t;
sb.append(drawableArr2 != null ? Integer.valueOf(drawableArr2.length) : null);
String sb2 = sb.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb2);
}
Drawable[] drawableArr3 = this.t;
if (drawableArr3 != null && (textView2 = this.L) != null) {
Drawable drawable = drawableArr3[0];
if (drawable != null) {
drawable.setBounds(0, 0, utility.convertDpToPixel(32.0f), utility.convertDpToPixel(32.0f));
}
Drawable drawable2 = drawableArr3[1];
if (drawable2 != null) {
drawable2.setBounds(0, 0, utility.convertDpToPixel(32.0f), utility.convertDpToPixel(32.0f));
}
Drawable drawable3 = drawableArr3[2];
if (drawable3 != null) {
drawable3.setBounds(0, 0, utility.convertDpToPixel(32.0f), utility.convertDpToPixel(32.0f));
}
Drawable drawable4 = drawableArr3[3];
if (drawable4 != null) {
drawable4.setBounds(0, 0, utility.convertDpToPixel(32.0f), utility.convertDpToPixel(32.0f));
}
textView2.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
}
} else if (utility.getCurrentUIModeType(this) != 4 && (textView = this.p) != null) {
textView.setBackground(androidx.core.content.b.getDrawable(this, com.jio.jioads.b.baseline_cancel_24));
}
}
if (textView5 != null) {
textView5.setVisibility(0);
}
TextView textView7 = this.r;
if (textView7 != null) {
textView7.bringToFront();
}
if (textView5 != null) {
textView5.setVisibility(0);
}
if (textView5 != null) {
textView5.setFocusable(true);
}
if (textView5 != null) {
textView5.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public final void onFocusChange(View view, boolean z) {
InterstitialActivity.a(InterstitialActivity.this, textView5, view, z);
}
});
}
if (textView5 != null) {
textView5.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
InterstitialActivity.b(InterstitialActivity.this, view);
}
});
}
}
public final void e() {
TextView textView;
Integer num;
String str = "txtvCloseAd :: " + this.p;
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", str);
}
TextView textView2 = this.p;
if (textView2 != null) {
this.q = String.valueOf(textView2.getContentDescription());
this.u = this.p.getText().toString();
Utility utility = Utility.INSTANCE;
if (utility.getCurrentUIModeType(this) == 4) {
Integer num2 = this.z;
if (num2 != null && num2.intValue() == -1) {
this.t = this.p.getCompoundDrawables();
this.u = this.p.getText().toString();
this.p.setText("");
}
} else if (getResources().getConfiguration().orientation == 2) {
Integer num3 = this.z;
if (num3 != null && num3.intValue() == -1) {
this.t = this.p.getCompoundDrawables();
TextView textView3 = this.p;
if (textView3 != null) {
textView3.setText("");
}
}
} else {
Integer num4 = this.y;
if (num4 != null && num4.intValue() == -1) {
this.t = this.p.getCompoundDrawables();
TextView textView4 = this.p;
if (textView4 != null) {
textView4.setText("");
}
}
}
if (utility.getCurrentUIModeType(this) == 4 && (num = this.y) != null && num.intValue() == -1) {
Drawable drawable = getResources().getDrawable(getResources().getIdentifier("jio_back_arrow", "drawable", getPackageName()));
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
TextView textView5 = this.p;
if (textView5 != null) {
textView5.setCompoundDrawables(null, null, drawable, null);
}
TextView textView6 = this.p;
if (textView6 != null) {
this.t = textView6.getCompoundDrawables();
}
}
int i = this.w;
if (i == -1) {
TextView textView7 = this.p;
if (textView7 != null) {
textView7.setVisibility(0);
}
d();
allowBackPress();
} else if (i != 0 && this.v != 0) {
if (this.r == null && (textView = this.p) != null) {
textView.setCompoundDrawables(null, null, null, null);
}
restrictBackPress();
if (this.o == null) {
s sVar = new s(this, this.w * 1000);
this.o = sVar;
sVar.start();
}
} else if (utility.getCurrentUIModeType(this) == 4) {
Integer num5 = this.y;
if (num5 != null && num5.intValue() == -1) {
allowBackPress();
d();
} else if (!TextUtils.isEmpty(this.q)) {
TextView textView8 = this.p;
if (textView8 != null) {
textView8.setText(this.q);
}
allowBackPress();
d();
}
} else {
allowBackPress();
d();
}
if (this.r == null) {
TextView textView9 = this.p;
if (textView9 != null) {
textView9.setVisibility(0);
}
TextView textView10 = this.p;
if (textView10 != null) {
textView10.bringToFront();
}
allowBackPress();
}
}
int i2 = this.w;
if (i2 == -1 || i2 == 0 || this.v == 0) {
allowBackPress();
}
}
public final void f() {
View view = this.F;
if (view != null) {
m mVar = this.i;
if (mVar != null) {
mVar.e = true;
}
view.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
InterstitialActivity.c(InterstitialActivity.this, view2);
}
});
}
}
public void finish() {
super/*android.app.Activity*/.finish();
Animation loadAnimation = AnimationUtils.loadAnimation(this, R.anim.fade_out);
findViewById(R.id.content).startAnimation(loadAnimation);
loadAnimation.setAnimationListener(new q(this));
}
public final void g() {
com.jio.jioads.common.b bVar;
int i = 0;
if (com.jio.jioads.utils.e.e(this.h) != 0) {
try {
i = com.jio.jioads.utils.e.e(this.h);
} catch (Exception e) {
e.printStackTrace();
}
}
this.w = i;
if (i == -1 && this.l != null && (bVar = this.n) != null && bVar.F() == 1 && this.D == n.c) {
com.jio.jioads.videomodule.d0 d0Var = this.l;
this.w = d0Var != null ? d0Var.T0() : -1;
} else {
NativeAdViewRenderer nativeAdViewRenderer = this.A;
if (nativeAdViewRenderer != null) {
this.w = nativeAdViewRenderer.getSkipOffSetDuration$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
}
}
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar2 = this.n;
sb.append(bVar2 != null ? bVar2.w() : null);
sb.append(": Final Selected Value For Skip Duration is : ");
String a2 = com.jio.jioads.adinterfaces.f0.a(sb, this.w, "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", a2);
}
}
public final String getAdData() {
return this.f;
}
public final String getAdType() {
return this.g;
}
public final View getCtaButton$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() {
return this.F;
}
public final HashMap<String, String> getHeaders() {
return this.h;
}
public final int getValue$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease(String str) {
HashMap hashMap = this.h;
Constants.ResponseHeaderKeys responseHeaderKeys = Constants.ResponseHeaderKeys.JIO_DATA;
String responseHeader = responseHeaderKeys.getResponseHeader();
Locale locale = Locale.ROOT;
if (hashMap.containsKey(responseHeader.toLowerCase(locale))) {
try {
JSONObject jSONObject = new JSONObject((String) this.h.get(responseHeaderKeys.getResponseHeader().toLowerCase(locale)));
if (Intrinsics.d(str, "at") && jSONObject.has("at")) {
try {
int parseInt = Integer.parseInt(jSONObject.getString("at"));
int i = 5;
if (parseInt != 5) {
i = 11;
if (parseInt != 11) {
i = 7;
if (parseInt != 7) {
i = 8;
if (parseInt != 8) {
i = 9;
if (parseInt != 9) {
}
}
}
}
}
return i;
} catch (NumberFormatException unused) {
return 0;
}
}
if (jSONObject.has(str)) {
return jSONObject.getInt(str);
}
} catch (Exception unused2) {
}
}
return 0;
}
public final void h() {
com.jio.jioads.common.b bVar = this.n;
RelativeLayout mVar = bVar != null ? new com.jio.jioads.common.m(this, bVar) : new RelativeLayout(this);
this.e = mVar;
mVar.post(new Runnable() {
@Override
public final void run() {
InterstitialActivity.a(InterstitialActivity.this);
}
});
RelativeLayout relativeLayout = this.e;
if (relativeLayout != null) {
relativeLayout.setLayoutParams(new WindowManager.LayoutParams(-1, -1, 2, 512, 0));
}
RelativeLayout relativeLayout2 = this.e;
if (relativeLayout2 != null) {
relativeLayout2.setBackgroundColor(getResources().getColor(R.color.black));
}
setContentView(this.e);
new RelativeLayout.LayoutParams(-2, -2).addRule(13);
int i = Build.VERSION.SDK_INT;
if (i >= 28) {
com.adtmonetize.sdk.code.u.a(getWindow().getAttributes(), 1);
}
if (i < 30) {
getWindow().getDecorView().setSystemUiVisibility(3844);
return;
}
getWindow().setDecorFitsSystemWindows(false);
WindowInsetsController a2 = c3.a(getWindow());
if (a2 != null) {
u0.a(a2, u2.a());
f3.a(a2, 2);
}
}
public final void i() {
ViewGroup view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease;
ViewGroup view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease2;
ViewGroup view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease3;
NativeAdViewRenderer nativeAdViewRenderer = this.A;
TextView textView = null;
this.p = (nativeAdViewRenderer == null || (view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease3 = nativeAdViewRenderer.getView$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease()) == null) ? null : (TextView) view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease3.findViewWithTag("NativeAdSkipElement");
NativeAdViewRenderer nativeAdViewRenderer2 = this.A;
this.r = (nativeAdViewRenderer2 == null || (view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease2 = nativeAdViewRenderer2.getView$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease()) == null) ? null : (TextView) view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease2.findViewWithTag("JioInterstitialCloseAd");
NativeAdViewRenderer nativeAdViewRenderer3 = this.A;
if (nativeAdViewRenderer3 != null && (view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease = nativeAdViewRenderer3.getView$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease()) != null) {
textView = (TextView) view$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease.findViewWithTag("NativeAdSkipElementFocused");
}
this.s = textView;
}
public final boolean isWebViewEnabled() {
try {
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
sb.append(bVar != null ? bVar.w() : null);
sb.append(": web view enabled");
String sb2 = sb.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb2);
}
CookieHandler.getDefault();
return true;
} catch (Exception unused) {
StringBuilder sb3 = new StringBuilder();
com.jio.jioads.common.b bVar2 = this.n;
String a2 = q0.a(sb3, bVar2 != null ? bVar2.w() : null, ": web view disabled", "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.e("merc", a2);
}
return false;
}
}
public final void j() {
ViewGroup viewGroup = this.C;
this.p = viewGroup != null ? (TextView) viewGroup.findViewWithTag("NativeAdSkipElement") : null;
ViewGroup viewGroup2 = this.C;
this.r = viewGroup2 != null ? (TextView) viewGroup2.findViewWithTag("JioInterstitialCloseAd") : null;
ViewGroup viewGroup3 = this.C;
this.s = viewGroup3 != null ? (TextView) viewGroup3.findViewWithTag("NativeAdSkipElementFocused") : null;
}
public final void k() {
throw new UnsupportedOperationException("Method not decompiled: com.jio.jioads.interstitial.InterstitialActivity.k():void");
}
public void onBackPressed() {
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
sb.append(bVar != null ? bVar.w() : null);
sb.append(": onBackPressed called in InterstitialActivity value an shouldAllowBackPress is: ");
sb.append(this.x);
String sb2 = sb.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb2);
}
if (this.x) {
com.jio.jioads.videomodule.d0 d0Var = this.l;
if (d0Var != null) {
d0Var.J(true);
} else {
closeAd(this.I, this.H, this.J);
}
}
}
public void onConfigurationChanged(Configuration configuration) {
Integer num;
Integer num2;
com.jio.jioads.videomodule.d0 d0Var;
Integer num3;
Integer num4;
com.jio.jioads.videomodule.d0 d0Var2;
NativeAdViewRenderer nativeAdViewRenderer;
Integer num5;
super.onConfigurationChanged(configuration);
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, " : OnConfigurationChanged in JioInterstitialAdActivity", "message");
JioAds.Companion companion = JioAds.Companion;
JioAds.LogLevel logLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease = companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
JioAds.LogLevel logLevel = JioAds.LogLevel.NONE;
if (logLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease != logLevel) {
Log.d("merc", a2);
}
com.jio.jioads.common.b bVar2 = this.n;
if (bVar2 != null && bVar2.F() == 2 && !this.b) {
Integer num6 = this.y;
if (num6 == null || num6.intValue() == -1 || (num5 = this.z) == null || num5.intValue() == -1) {
return;
}
a(null, null, null);
j();
e();
return;
}
com.jio.jioads.common.b bVar3 = this.n;
if (bVar3 != null && bVar3.F() == 0 && !this.b) {
StringBuilder sb2 = new StringBuilder();
com.jio.jioads.common.b bVar4 = this.n;
String a3 = q0.a(sb2, bVar4 != null ? bVar4.w() : null, ": inside native ad view creation", "message");
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", a3);
}
NativeAdViewRenderer nativeAdViewRenderer2 = this.A;
if (nativeAdViewRenderer2 != null) {
nativeAdViewRenderer2.setOrientation$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease(configuration.orientation);
}
NativeAdViewRenderer nativeAdViewRenderer3 = this.A;
if (nativeAdViewRenderer3 != null) {
nativeAdViewRenderer3.prepareInterstitialNativeAdWithHandler$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
}
RelativeLayout relativeLayout = this.e;
if (relativeLayout != null && (nativeAdViewRenderer = this.A) != null) {
nativeAdViewRenderer.loadNativeAd$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease(relativeLayout, false);
}
i();
e();
return;
}
boolean z = this.b;
if (!z && this.l != null) {
Integer num7 = this.y;
if (num7 == null || num7.intValue() == -1 || (num3 = this.z) == null || num3.intValue() == -1) {
if (this.C != null) {
return;
}
com.jio.jioads.util.y.b(100L, new w(this));
return;
}
int i = configuration.orientation;
if (i == 1) {
num4 = this.y;
} else if (i != 2) {
return;
} else {
num4 = this.z;
}
if (num4 == null || (d0Var2 = this.l) == null) {
return;
}
d0Var2.V(num4.intValue());
return;
}
if (!z || this.l == null) {
return;
}
Integer num8 = this.y;
if (num8 == null || num8.intValue() == -1 || (num = this.z) == null || num.intValue() == -1) {
if (this.C != null) {
return;
}
com.jio.jioads.util.y.b(100L, new x(this));
return;
}
int i2 = configuration.orientation;
if (i2 == 1) {
num2 = this.y;
} else if (i2 != 2) {
return;
} else {
num2 = this.z;
}
if (num2 == null || (d0Var = this.l) == null) {
return;
}
d0Var.V(num2.intValue());
}
public final void onCreate(Bundle bundle) {
Integer num;
int[] iArr;
Integer num2;
requestWindowFeature(1);
getWindow().requestFeature(13);
getWindow().setAllowEnterTransitionOverlap(true);
super/*androidx.fragment.app.r*/.onCreate(bundle);
androidx.appcompat.app.a supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.m();
}
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, ": InterstitialActivity onCreate called", "message");
JioAds.Companion companion = JioAds.Companion;
JioAds.LogLevel logLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease = companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
JioAds.LogLevel logLevel = JioAds.LogLevel.NONE;
if (logLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease != logLevel) {
Log.d("merc", a2);
}
y yVar = y.k;
if (yVar == null) {
yVar = new y();
y.k = yVar;
}
this.n = yVar.d;
this.j = yVar.b;
NativeAdViewRenderer nativeAdViewRenderer = yVar.e;
this.A = nativeAdViewRenderer;
if (nativeAdViewRenderer != null) {
nativeAdViewRenderer.setCloseAfter$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease(this);
}
this.B = yVar.a;
this.k = yVar.c;
this.E = yVar.g;
InterstitialAdController interstitialAdController = yVar.h;
this.i = yVar.j;
if (interstitialAdController != null) {
interstitialAdController.setAliveInterstitialActivityContext(this);
}
com.jio.jioads.common.b bVar2 = this.n;
this.c = bVar2 != null ? bVar2.Y() : null;
Intent intent = getIntent();
this.y = Integer.valueOf(intent.getIntExtra("customContainerPortrait", -1));
this.z = Integer.valueOf(intent.getIntExtra("customContainerLandscape", -1));
intent.getStringExtra("ccbString");
intent.getBooleanExtra("isInterstitialAudioAd", false);
String stringExtra = intent.getStringExtra("adType");
String str = "";
if (stringExtra == null) {
stringExtra = "";
}
this.g = stringExtra;
if (StringsKt.B("native", stringExtra, true)) {
this.D = n.a;
} else if (StringsKt.B("html", this.g, true)) {
this.D = n.b;
} else if (StringsKt.B("audio", this.g, true)) {
this.D = n.e;
} else if (StringsKt.B("video", this.g, true)) {
this.D = n.c;
}
n nVar = this.D;
if (nVar == n.b) {
str = String.valueOf(intent.getStringExtra(Constants.ScionAnalytics.MessageType.DATA_MESSAGE));
} else if (nVar == n.e) {
String c = c();
if (c != null) {
str = c;
}
} else {
str = String.valueOf(intent.getStringExtra(Constants.ScionAnalytics.MessageType.DATA_MESSAGE));
}
this.f = str;
this.h = (HashMap) intent.getSerializableExtra("headers");
if (Utility.INSTANCE.getCurrentUIModeType(this) == 4) {
this.a = "l";
}
String h = com.jio.jioads.utils.e.h(this.h);
this.a = h != null ? h : "l";
StringBuilder sb2 = new StringBuilder();
com.jio.jioads.common.b bVar3 = this.n;
sb2.append(bVar3 != null ? bVar3.w() : null);
sb2.append(": serverDefinedOrientation: ");
String a3 = com.jio.jioads.adinterfaces.t.a(sb2, this.a, "message");
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", a3);
}
Integer num3 = this.y;
if (num3 != null && num3.intValue() == -1 && (num2 = this.z) != null) {
num2.intValue();
}
h();
Integer num4 = this.z;
if ((num4 != null && num4.intValue() == -1) || ((num = this.y) != null && num.intValue() == -1)) {
iArr = null;
} else {
iArr = new int[2];
Integer num5 = this.y;
iArr[0] = num5 != null ? num5.intValue() : 0;
Integer num6 = this.z;
iArr[1] = num6 != null ? num6.intValue() : 0;
}
JioAdView.ORIENTATION_TYPE orientation_type = this.c;
if (orientation_type != null) {
this.b = true;
this.d = orientation_type == JioAdView.ORIENTATION_TYPE.LANDSCAPE;
}
if (iArr != null) {
int i = iArr[0];
if (i == -1 && iArr[1] != -1) {
this.b = true;
this.d = true;
} else if (i != -1 && iArr[1] == -1) {
this.b = true;
this.d = false;
}
}
if (this.b) {
setRequestedOrientation(this.d ? 6 : 7);
} else if (this.a.equals(JioAdView.ORIENTATION_TYPE.LANDSCAPE)) {
setRequestedOrientation(6);
setRequestedOrientation(14);
} else if (this.a.equals(JioAdView.ORIENTATION_TYPE.PORTRAIT)) {
setRequestedOrientation(7);
setRequestedOrientation(14);
} else {
setRequestedOrientation(4);
}
g();
n nVar2 = this.D;
n nVar3 = n.c;
if (nVar2 == nVar3) {
com.jio.jioads.videomodule.d0 d0Var = yVar.f;
this.l = d0Var;
if (d0Var != null) {
restrictBackPress();
d0Var.G(this.O);
}
}
com.jio.jioads.common.b bVar4 = this.n;
if (bVar4 != null && bVar4.F() == 2) {
a(null, null, null);
return;
}
com.jio.jioads.common.b bVar5 = this.n;
if (bVar5 != null && bVar5.F() == 1) {
StringBuilder sb3 = new StringBuilder(" ");
com.jio.jioads.common.b bVar6 = this.n;
sb3.append(bVar6 != null ? bVar6.w() : null);
sb3.append(": loadAd: called activity for video ad");
sb3.append(this.l);
String sb4 = sb3.toString();
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", sb4);
}
n nVar4 = this.D;
if (nVar4 == nVar3) {
com.jio.jioads.controller.b bVar7 = this.j;
if (bVar7 != null) {
((o1) bVar7).g(JioAdView.AdState.STARTING);
}
com.jio.jioads.videomodule.d0 d0Var2 = this.l;
if (d0Var2 != null) {
d0Var2.x(this.e, null, false);
return;
}
return;
}
n nVar5 = n.e;
if (nVar4 == nVar5 && this.G != n.d) {
StringBuilder sb5 = new StringBuilder();
com.jio.jioads.common.b bVar8 = this.n;
String a4 = q0.a(sb5, bVar8 != null ? bVar8.w() : null, ": loading default companion ad webview is not available", "message");
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", a4);
}
k();
return;
}
if (nVar4 == nVar5 && this.G == n.d) {
StringBuilder sb6 = new StringBuilder();
com.jio.jioads.common.b bVar9 = this.n;
String a5 = q0.a(sb6, bVar9 != null ? bVar9.w() : null, ": init WebView", "message");
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", a5);
}
a(null, null, null);
return;
}
return;
}
StringBuilder sb7 = new StringBuilder(" ");
com.jio.jioads.common.b bVar10 = this.n;
sb7.append(bVar10 != null ? bVar10.w() : null);
sb7.append(": onShowAdView: called activity ");
sb7.append(this.A == null);
String sb8 = sb7.toString();
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.d("merc", sb8);
}
NativeAdViewRenderer nativeAdViewRenderer2 = this.A;
if (nativeAdViewRenderer2 != null) {
RelativeLayout relativeLayout = this.e;
if (relativeLayout != null) {
nativeAdViewRenderer2.loadNativeAd$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease(relativeLayout, true);
}
com.jio.jioads.common.c cVar = this.k;
if (cVar != null) {
((com.jio.jioads.controller.h) cVar).a.i0();
}
i();
g();
e();
return;
}
StringBuilder sb9 = new StringBuilder();
com.jio.jioads.common.b bVar11 = this.n;
String a6 = q0.a(sb9, bVar11 != null ? bVar11.w() : null, " : Ad not prepared", "message");
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.e("merc", a6);
}
JioAdError a7 = com.jio.jioads.adinterfaces.b0.a(JioAdError.Companion, JioAdError.JioAdErrorType.ERROR_IN_LOAD_AD, "Ad not prepared");
StringBuilder sb10 = new StringBuilder();
com.jio.jioads.common.b bVar12 = this.n;
sb10.append(bVar12 != null ? bVar12.w() : null);
sb10.append(": NativeAd: setJioAdError() ERROR: ");
sb10.append(a7.getErrorDescription());
String sb11 = sb10.toString();
if (companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != logLevel) {
Log.e("merc", sb11);
}
com.jio.jioads.controller.b bVar13 = this.j;
if (bVar13 != null) {
((o1) bVar13).f(a7, false, com.jio.jioads.cdnlogging.d.a, "setInterstitialError", InterstitialActivity.class.getName(), "Ad not prepared", null);
}
}
public final void onDestroy() {
super.onDestroy();
com.jio.jioads.common.b bVar = this.n;
if (bVar != null) {
bVar.j(JioAdView.AdState.CLOSED);
}
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar2 = this.n;
String a2 = q0.a(sb, bVar2 != null ? bVar2.w() : null, ": onDestroy called in InterstitialActivity", "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", a2);
}
}
public final void onPause() {
super/*androidx.fragment.app.r*/.onPause();
if (this.l != null) {
this.m = !r0.b();
}
com.jio.jioads.videomodule.d0 d0Var = this.l;
if (d0Var != null) {
d0Var.d0(false);
}
NativeAdViewRenderer nativeAdViewRenderer = this.A;
if (nativeAdViewRenderer != null) {
nativeAdViewRenderer.pause$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
}
}
public final void onResume() {
com.jio.jioads.videomodule.d0 d0Var;
super/*androidx.fragment.app.r*/.onResume();
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, ": onResume called in InterstitialActivity", "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", a2);
}
if (!this.m && (d0Var = this.l) != null) {
d0Var.l0(false);
}
NativeAdViewRenderer nativeAdViewRenderer = this.A;
if (nativeAdViewRenderer != null) {
nativeAdViewRenderer.resume$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease();
}
}
public final void onStart() {
super.onStart();
P = true;
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, ": onStart called in InterstitialActivity", "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", a2);
}
}
public final void onStop() {
super.onStop();
StringBuilder sb = new StringBuilder();
com.jio.jioads.common.b bVar = this.n;
String a2 = q0.a(sb, bVar != null ? bVar.w() : null, ": OnStop called in InterstitialActivity", "message");
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", a2);
}
}
public final void restrictBackPress() {
this.x = false;
}
public final void setAdData(String str) {
this.f = str;
}
public final void setAdType(String str) {
this.g = str;
}
public final void setCtaButton$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease(View view) {
this.F = view;
}
public final void setHeaders(HashMap<String, String> hashMap) {
this.h = hashMap;
}
public static final void a(InterstitialActivity interstitialActivity) {
RelativeLayout relativeLayout = interstitialActivity.e;
com.jio.jioads.common.m mVar = relativeLayout instanceof com.jio.jioads.common.m ? (com.jio.jioads.common.m) relativeLayout : null;
if (mVar != null) {
mVar.f = new t(interstitialActivity);
}
}
public final void a(java.lang.String r7, java.util.List r8, java.util.List r9) {
throw new UnsupportedOperationException("Method not decompiled: com.jio.jioads.interstitial.InterstitialActivity.a(java.lang.String, java.util.List, java.util.List):void");
}
public static final void b(InterstitialActivity interstitialActivity, TextView textView, View view, boolean z) {
TextView textView2;
if (Utility.INSTANCE.getCurrentUIModeType(interstitialActivity) != 4 && (textView2 = interstitialActivity.p) != null) {
textView2.setText("");
}
if (z) {
return;
}
TextView textView3 = interstitialActivity.s;
if (textView3 != null) {
textView3.setVisibility(8);
}
if (textView == null) {
return;
}
textView.setVisibility(0);
}
public static final void b(InterstitialActivity interstitialActivity, View view) {
interstitialActivity.closeAd(interstitialActivity.I, interstitialActivity.H, interstitialActivity.J);
}
public static final void c(InterstitialActivity interstitialActivity, View view) {
m mVar = interstitialActivity.i;
if (mVar != null) {
mVar.f();
}
}
public final void a() {
String str;
try {
com.jio.jioads.common.c cVar = this.k;
String a2 = cVar != null ? ((com.jio.jioads.controller.h) cVar).a(Constants.HeaderKeys.X_Jio_IM.getKey()) : null;
com.jio.jioads.common.b bVar = this.n;
Context l = bVar != null ? bVar.l() : null;
if (l != null) {
com.jio.jioads.util.j jVar = com.jio.jioads.util.j.a;
if (com.jio.jioads.util.j.n(this.k)) {
StringBuilder sb = new StringBuilder("fre=");
com.jio.jioads.common.c cVar2 = this.k;
sb.append(cVar2 != null ? ((com.jio.jioads.controller.h) cVar2).l() : null);
sb.append("&frt");
String sb2 = sb.toString();
if (a2 != null) {
str = StringsKt.K(a2, "frt", "\"" + sb2 + '\"', false, 4, (Object) null);
} else {
str = null;
}
String valueOf = String.valueOf(str);
com.jio.jioads.common.b bVar2 = this.n;
a2 = com.jio.jioads.util.j.b(l, valueOf, bVar2 != null ? bVar2.w() : null, this.k);
}
}
if (TextUtils.isEmpty(a2)) {
return;
}
StringBuilder sb3 = new StringBuilder();
com.jio.jioads.common.b bVar3 = this.n;
sb3.append(bVar3 != null ? bVar3.w() : null);
sb3.append(": Impression fired successfully: ");
sb3.append(a2);
String sb4 = sb3.toString();
if (JioAds.Companion.getInstance().getLogLevel$jio_ads_sdk_exo_2_18Location_21SsaiCommonVideoModuleCompanionNativeDynamicDisplayInstreamAudioInstreamVideoInterstitialMediationRetargetingCarouselRelease() != JioAds.LogLevel.NONE) {
Log.d("merc", sb4);
}
m mVar = this.i;
if (mVar != null) {
mVar.d(a2);
}
} catch (Exception unused) {
}
}
public static final void a(final InterstitialActivity interstitialActivity, final TextView textView, View view, boolean z) {
TextView textView2;
if (interstitialActivity.r == null && Utility.INSTANCE.getCurrentUIModeType(interstitialActivity) != 4 && (textView2 = interstitialActivity.p) != null) {
textView2.setText("");
}
if (!z || interstitialActivity.s == null) {
return;
}
if (textView != null) {
textView.setVisibility(8);
}
TextView textView3 = interstitialActivity.s;
if (textView3 != null) {
textView3.setVisibility(0);
}
TextView textView4 = interstitialActivity.s;
if (textView4 != null) {
textView4.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public final void onFocusChange(View view2, boolean z2) {
InterstitialActivity.b(InterstitialActivity.this, textView, view2, z2);
}
});
}
TextView textView5 = interstitialActivity.s;
if (textView5 != null) {
textView5.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
InterstitialActivity.a(InterstitialActivity.this, view2);
}
});
}
TextView textView6 = interstitialActivity.s;
if (textView6 != null) {
textView6.requestFocus();
}
}
public static final void a(InterstitialActivity interstitialActivity, View view) {
interstitialActivity.closeAd(interstitialActivity.I, interstitialActivity.H, interstitialActivity.J);
}
}