- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
501 lines
22 KiB
Java
501 lines
22 KiB
Java
package com.fyber.inneractive.sdk.flow;
|
|
|
|
import android.app.Application;
|
|
import android.content.Context;
|
|
import android.graphics.Bitmap;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.widget.ImageView;
|
|
import com.fyber.inneractive.sdk.R;
|
|
import com.fyber.inneractive.sdk.config.IAConfigManager;
|
|
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
|
|
import com.fyber.inneractive.sdk.external.InneractiveInfrastructureError;
|
|
import com.fyber.inneractive.sdk.factories.b;
|
|
import com.fyber.inneractive.sdk.flow.vast.a;
|
|
import com.fyber.inneractive.sdk.network.m0;
|
|
import com.fyber.inneractive.sdk.network.n0;
|
|
import com.fyber.inneractive.sdk.network.s;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.fyber.inneractive.sdk.util.b1;
|
|
import com.fyber.inneractive.sdk.web.f;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import java.net.UnknownHostException;
|
|
import java.util.ArrayList;
|
|
import java.util.PriorityQueue;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class m {
|
|
public final int a;
|
|
public final InneractiveAdRequest b;
|
|
public final com.fyber.inneractive.sdk.response.g c;
|
|
public final com.fyber.inneractive.sdk.config.global.s d;
|
|
public final com.fyber.inneractive.sdk.model.vast.b e;
|
|
public final Context f;
|
|
public boolean g;
|
|
public n0 h;
|
|
public m0 i;
|
|
public final com.fyber.inneractive.sdk.flow.vast.b j;
|
|
public int k;
|
|
public final com.fyber.inneractive.sdk.flow.vast.c m;
|
|
public final PriorityQueue<com.fyber.inneractive.sdk.flow.vast.a> l = new PriorityQueue<>(10, new a.b());
|
|
public com.fyber.inneractive.sdk.player.controller.c n = null;
|
|
public final a o = new a();
|
|
public final b p = new b();
|
|
public final c q = new c();
|
|
|
|
public class a implements f.b {
|
|
public a() {
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.f.b
|
|
public final void a(com.fyber.inneractive.sdk.web.f fVar) {
|
|
IAlog.a("%s Fetching companion fmp successfully ", IAlog.a(m.this));
|
|
m.this.m.a = fVar != null;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.f.b
|
|
public final void a(InneractiveInfrastructureError inneractiveInfrastructureError) {
|
|
IAlog.a("%s Fetching companion fmp failed! will load default companion", IAlog.a(m.this));
|
|
m mVar = m.this;
|
|
mVar.m.a = false;
|
|
m.a(mVar, inneractiveInfrastructureError.getCause());
|
|
}
|
|
}
|
|
|
|
public class b implements com.fyber.inneractive.sdk.network.w<String> {
|
|
public b() {
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.w
|
|
public final void a(String str, Exception exc, boolean z) {
|
|
String str2 = str;
|
|
if (str2 != null) {
|
|
m mVar = m.this;
|
|
if (mVar.e != null) {
|
|
com.fyber.inneractive.sdk.flow.vast.c cVar = mVar.m;
|
|
if (!cVar.i) {
|
|
IAlog.a("FmpEndcardLoadingStarted", new Object[0]);
|
|
cVar.i = true;
|
|
String str3 = str2.concat("<title>Digital Turbine FMP Endcard</title>") + "<style>body{margin: 0px;}</style>";
|
|
m mVar2 = m.this;
|
|
com.fyber.inneractive.sdk.flow.vast.c cVar2 = mVar2.m;
|
|
cVar2.j = z;
|
|
cVar2.g.a(str3, (f.b) mVar2.o, false);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
if (exc == null || (exc instanceof com.fyber.inneractive.sdk.network.f) || z) {
|
|
return;
|
|
}
|
|
m.a(m.this, exc);
|
|
}
|
|
}
|
|
|
|
public class c implements com.fyber.inneractive.sdk.network.w<String> {
|
|
public c() {
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.w
|
|
public final void a(String str, Exception exc, boolean z) {
|
|
com.fyber.inneractive.sdk.model.vast.n nVar;
|
|
com.fyber.inneractive.sdk.model.vast.n nVar2;
|
|
String str2 = str;
|
|
ArrayList arrayList = null;
|
|
arrayList = null;
|
|
if (str2 != null && exc == null) {
|
|
m mVar = m.this;
|
|
com.fyber.inneractive.sdk.model.vast.b bVar = mVar.e;
|
|
if (bVar == null || (nVar2 = bVar.f) == null) {
|
|
return;
|
|
}
|
|
nVar2.d = str2;
|
|
IAlog.a("sending fmpHtmlRequest", new Object[0]);
|
|
com.fyber.inneractive.sdk.model.vast.h.FMP_End_Card.name();
|
|
com.fyber.inneractive.sdk.config.global.s sVar = mVar.d;
|
|
String a = sVar != null ? ((com.fyber.inneractive.sdk.config.global.features.f) sVar.a(com.fyber.inneractive.sdk.config.global.features.f.class)).a(CampaignEx.ENDCARD_URL, "") : null;
|
|
if (TextUtils.isEmpty(a)) {
|
|
return;
|
|
}
|
|
IAConfigManager.L.r.a(new com.fyber.inneractive.sdk.network.g0(mVar.p, mVar.f, new com.fyber.inneractive.sdk.cache.c(a)));
|
|
return;
|
|
}
|
|
if (!m.a(m.this)) {
|
|
m.a(m.this, new Exception(String.format("Fail to load image: %s", m.this.i.p), exc));
|
|
return;
|
|
}
|
|
m mVar2 = m.this;
|
|
com.fyber.inneractive.sdk.model.vast.b bVar2 = mVar2.e;
|
|
if (bVar2 != null && (nVar = bVar2.f) != null) {
|
|
arrayList = nVar.c;
|
|
}
|
|
if (arrayList == null || arrayList.size() <= 0) {
|
|
return;
|
|
}
|
|
String str3 = (String) arrayList.remove(0);
|
|
if (TextUtils.isEmpty(str3)) {
|
|
return;
|
|
}
|
|
m0 m0Var = new m0(mVar2.q, str3);
|
|
mVar2.i = m0Var;
|
|
IAConfigManager.L.r.a(m0Var);
|
|
}
|
|
}
|
|
|
|
public class d implements f.b {
|
|
public final /* synthetic */ com.fyber.inneractive.sdk.flow.vast.e a;
|
|
public final /* synthetic */ com.fyber.inneractive.sdk.model.vast.c b;
|
|
|
|
public d(com.fyber.inneractive.sdk.flow.vast.e eVar, com.fyber.inneractive.sdk.model.vast.c cVar) {
|
|
this.a = eVar;
|
|
this.b = cVar;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.f.b
|
|
public final void a(com.fyber.inneractive.sdk.web.f fVar) {
|
|
if (fVar != null) {
|
|
com.fyber.inneractive.sdk.flow.vast.e eVar = this.a;
|
|
eVar.a = true;
|
|
m.this.l.add(eVar);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x005f */
|
|
@Override // com.fyber.inneractive.sdk.web.f.b
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(com.fyber.inneractive.sdk.external.InneractiveInfrastructureError r6) {
|
|
/*
|
|
r5 = this;
|
|
java.lang.StringBuilder r6 = new java.lang.StringBuilder
|
|
r6.<init>()
|
|
com.fyber.inneractive.sdk.flow.m r0 = com.fyber.inneractive.sdk.flow.m.this
|
|
java.lang.String r0 = com.fyber.inneractive.sdk.util.IAlog.a(r0)
|
|
r6.append(r0)
|
|
java.lang.String r0 = " Fetching companion html failed!"
|
|
r6.append(r0)
|
|
java.lang.String r6 = r6.toString()
|
|
r0 = 0
|
|
java.lang.Object[] r1 = new java.lang.Object[r0]
|
|
com.fyber.inneractive.sdk.util.IAlog.a(r6, r1)
|
|
com.fyber.inneractive.sdk.model.vast.j r6 = com.fyber.inneractive.sdk.model.vast.j.Gif
|
|
com.fyber.inneractive.sdk.model.vast.c r1 = r5.b
|
|
com.fyber.inneractive.sdk.model.vast.j r1 = r1.b
|
|
boolean r6 = r6.equals(r1)
|
|
if (r6 == 0) goto L38
|
|
com.fyber.inneractive.sdk.model.vast.c r6 = r5.b
|
|
java.lang.String r1 = r6.f
|
|
com.fyber.inneractive.sdk.model.vast.j r6 = r6.b
|
|
boolean r6 = com.fyber.inneractive.sdk.util.b1.a(r1, r6)
|
|
if (r6 == 0) goto L36
|
|
goto L38
|
|
L36:
|
|
r6 = r0
|
|
goto L39
|
|
L38:
|
|
r6 = 1
|
|
L39:
|
|
com.fyber.inneractive.sdk.flow.vast.e r1 = r5.a
|
|
r1.a = r0
|
|
com.fyber.inneractive.sdk.flow.m r1 = com.fyber.inneractive.sdk.flow.m.this
|
|
int r2 = r1.k
|
|
int r3 = r1.a
|
|
if (r2 > r3) goto L5c
|
|
if (r6 == 0) goto L5c
|
|
java.lang.String r6 = com.fyber.inneractive.sdk.util.IAlog.a(r5)
|
|
java.lang.Object[] r6 = new java.lang.Object[]{r6}
|
|
java.lang.String r0 = "%sloadHtmlCompanion retry"
|
|
com.fyber.inneractive.sdk.util.IAlog.a(r0, r6)
|
|
com.fyber.inneractive.sdk.flow.m r6 = com.fyber.inneractive.sdk.flow.m.this
|
|
com.fyber.inneractive.sdk.model.vast.c r0 = r5.b
|
|
r6.a(r0)
|
|
goto L81
|
|
L5c:
|
|
r2 = 0
|
|
if (r6 != 0) goto L6d
|
|
com.fyber.inneractive.sdk.network.s$a r6 = new com.fyber.inneractive.sdk.network.s$a
|
|
com.fyber.inneractive.sdk.network.q r3 = com.fyber.inneractive.sdk.network.q.VAST_COMPANION_INCOMPATIBLE_MIMETYPE
|
|
com.fyber.inneractive.sdk.external.InneractiveAdRequest r4 = r1.b
|
|
com.fyber.inneractive.sdk.response.g r1 = r1.c
|
|
r6.<init>(r3, r4, r1, r2)
|
|
r6.a(r2)
|
|
L6d:
|
|
com.fyber.inneractive.sdk.flow.m r6 = com.fyber.inneractive.sdk.flow.m.this
|
|
com.fyber.inneractive.sdk.model.vast.c r1 = r5.b
|
|
org.json.JSONObject r1 = r1.a()
|
|
com.fyber.inneractive.sdk.flow.m.a(r6, r1, r2)
|
|
com.fyber.inneractive.sdk.flow.vast.e r6 = r5.a
|
|
r6.a = r0
|
|
com.fyber.inneractive.sdk.flow.m r6 = com.fyber.inneractive.sdk.flow.m.this
|
|
r6.b()
|
|
L81:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.flow.m.d.a(com.fyber.inneractive.sdk.external.InneractiveInfrastructureError):void");
|
|
}
|
|
}
|
|
|
|
public class e implements com.fyber.inneractive.sdk.network.w<n0.a> {
|
|
public final /* synthetic */ com.fyber.inneractive.sdk.model.vast.c a;
|
|
|
|
public e(com.fyber.inneractive.sdk.model.vast.c cVar) {
|
|
this.a = cVar;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.w
|
|
public final void a(n0.a aVar, Exception exc, boolean z) {
|
|
Bitmap bitmap;
|
|
View view;
|
|
n0.a aVar2 = aVar;
|
|
m.this.getClass();
|
|
com.fyber.inneractive.sdk.flow.vast.a a = m.a();
|
|
m.this.getClass();
|
|
if (exc == null && aVar2 != null && aVar2.b == null && (bitmap = aVar2.a) != null && (view = a.b) != null) {
|
|
((ImageView) view).setImageBitmap(bitmap);
|
|
a.a = true;
|
|
m.this.l.add(a);
|
|
return;
|
|
}
|
|
IAlog.a("%s Fetching companion image failed!", IAlog.a(m.this));
|
|
com.fyber.inneractive.sdk.model.vast.c cVar = this.a;
|
|
boolean a2 = b1.a(cVar.f, cVar.b);
|
|
m.this.getClass();
|
|
if ((aVar2 == null || (aVar2.b != null && ((exc instanceof com.fyber.inneractive.sdk.network.b) || (exc instanceof UnknownHostException)))) && a2) {
|
|
m mVar = m.this;
|
|
if (mVar.k <= mVar.a) {
|
|
IAlog.a("%sloadStaticCompanion retry", IAlog.a(this));
|
|
m.this.b(this.a);
|
|
return;
|
|
}
|
|
}
|
|
String str = null;
|
|
if (!a2) {
|
|
m mVar2 = m.this;
|
|
mVar2.getClass();
|
|
new s.a(com.fyber.inneractive.sdk.network.q.VAST_COMPANION_INCOMPATIBLE_MIMETYPE, mVar2.b, mVar2.c, (JSONArray) null).a((String) null);
|
|
}
|
|
if (aVar2 != null && !TextUtils.isEmpty(aVar2.b)) {
|
|
str = aVar2.b;
|
|
}
|
|
m.a(m.this, this.a.a(), str);
|
|
m.this.b();
|
|
}
|
|
}
|
|
|
|
public m(Application application, com.fyber.inneractive.sdk.response.g gVar, InneractiveAdRequest inneractiveAdRequest, com.fyber.inneractive.sdk.config.global.s sVar, com.fyber.inneractive.sdk.flow.vast.b bVar) {
|
|
com.fyber.inneractive.sdk.model.vast.b d2 = gVar.d();
|
|
this.e = d2;
|
|
this.f = application;
|
|
this.c = gVar;
|
|
this.b = inneractiveAdRequest;
|
|
this.d = sVar;
|
|
this.a = IAConfigManager.c().a().a(2, 0, "companion_retry_count");
|
|
this.j = bVar;
|
|
com.fyber.inneractive.sdk.web.a aVar = new com.fyber.inneractive.sdk.web.a(d2);
|
|
com.fyber.inneractive.sdk.flow.vast.c cVar = new com.fyber.inneractive.sdk.flow.vast.c(new com.fyber.inneractive.sdk.player.controller.c(application, bVar, com.fyber.inneractive.sdk.model.vast.h.FMP_End_Card, aVar));
|
|
this.m = cVar;
|
|
aVar.a(cVar);
|
|
}
|
|
|
|
public static void a(m mVar, JSONObject jSONObject, String str) {
|
|
mVar.getClass();
|
|
s.a aVar = new s.a(com.fyber.inneractive.sdk.network.q.VAST_COMPANION_FAILED_LOADING, mVar.b, mVar.c, mVar.d.c());
|
|
JSONObject jSONObject2 = new JSONObject();
|
|
try {
|
|
jSONObject2.put("companion_data", jSONObject);
|
|
} catch (Exception unused) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "companion_data", jSONObject);
|
|
}
|
|
if (!TextUtils.isEmpty(str)) {
|
|
try {
|
|
jSONObject2.put("reason", str);
|
|
} catch (Exception unused2) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "reason", str);
|
|
}
|
|
}
|
|
aVar.f.put(jSONObject2);
|
|
aVar.a((String) null);
|
|
}
|
|
|
|
public final void b(com.fyber.inneractive.sdk.model.vast.c cVar) {
|
|
com.fyber.inneractive.sdk.network.r rVar = com.fyber.inneractive.sdk.network.r.VAST_COMPANION_LOAD_ATTEMPT;
|
|
InneractiveAdRequest inneractiveAdRequest = this.b;
|
|
com.fyber.inneractive.sdk.response.g gVar = this.c;
|
|
com.fyber.inneractive.sdk.config.global.s sVar = this.d;
|
|
new s.a(rVar, inneractiveAdRequest, gVar, sVar == null ? null : sVar.c()).a((String) null);
|
|
int i = IAlog.a;
|
|
cVar.a.name();
|
|
this.k++;
|
|
n0 n0Var = new n0(new e(cVar), cVar.f, this.d);
|
|
this.h = n0Var;
|
|
IAConfigManager.L.r.a(n0Var);
|
|
}
|
|
|
|
public final void c() {
|
|
com.fyber.inneractive.sdk.model.vast.n nVar;
|
|
com.fyber.inneractive.sdk.model.vast.b bVar = this.e;
|
|
if (bVar == null || (nVar = bVar.f) == null) {
|
|
return;
|
|
}
|
|
ArrayList arrayList = (bVar == null || nVar == null) ? null : nVar.c;
|
|
if (arrayList == null || arrayList.size() <= 0) {
|
|
return;
|
|
}
|
|
String str = (String) arrayList.remove(0);
|
|
if (TextUtils.isEmpty(str)) {
|
|
return;
|
|
}
|
|
m0 m0Var = new m0(this.q, str);
|
|
this.i = m0Var;
|
|
IAConfigManager.L.r.a(m0Var);
|
|
}
|
|
|
|
public final void b() {
|
|
boolean z = true;
|
|
if (this.l.size() == 1) {
|
|
return;
|
|
}
|
|
IAlog.a("%sloadNextVastCompanion called", IAlog.a(this));
|
|
this.g = false;
|
|
if (this.e == null) {
|
|
IAlog.a("%svast data is null! Object must have already been destroyed", IAlog.a(this));
|
|
z = false;
|
|
}
|
|
if (this.e.g.size() == 0) {
|
|
IAlog.b("%sgetNextIAvastCompanion - No companion ads found", IAlog.a(this));
|
|
} else if (z) {
|
|
com.fyber.inneractive.sdk.model.vast.b bVar = this.e;
|
|
com.fyber.inneractive.sdk.model.vast.c poll = bVar.g.poll();
|
|
bVar.i = poll;
|
|
IAlog.a("%sgetNextIAvastCompanion returning: %s", IAlog.a(this), poll);
|
|
this.k = 0;
|
|
if (poll != null) {
|
|
if (poll.a == com.fyber.inneractive.sdk.model.vast.h.Static && !com.fyber.inneractive.sdk.model.vast.j.Gif.equals(poll.b)) {
|
|
b(poll);
|
|
return;
|
|
} else {
|
|
a(poll);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
IAlog.a("%sno more companion ads available.", IAlog.a(this));
|
|
}
|
|
|
|
public static boolean a(m mVar) {
|
|
com.fyber.inneractive.sdk.model.vast.n nVar;
|
|
ArrayList arrayList;
|
|
com.fyber.inneractive.sdk.model.vast.b bVar = mVar.e;
|
|
return (bVar == null || (nVar = bVar.f) == null || (arrayList = nVar.c) == null || arrayList.size() <= 0) ? false : true;
|
|
}
|
|
|
|
public static void a(m mVar, Throwable th) {
|
|
com.fyber.inneractive.sdk.web.a aVar;
|
|
com.fyber.inneractive.sdk.config.global.s sVar = mVar.d;
|
|
JSONArray c2 = sVar == null ? null : sVar.c();
|
|
com.fyber.inneractive.sdk.flow.vast.c cVar = mVar.m;
|
|
InneractiveAdRequest inneractiveAdRequest = mVar.b;
|
|
com.fyber.inneractive.sdk.response.g gVar = mVar.c;
|
|
cVar.getClass();
|
|
IAlog.a("sending FMP_COMPANION_FAILED_LOADING event", new Object[0]);
|
|
s.a aVar2 = new s.a(com.fyber.inneractive.sdk.network.q.FMP_COMPANION_FAILED_LOADING, inneractiveAdRequest, gVar, c2);
|
|
JSONObject jSONObject = new JSONObject();
|
|
String message = th != null ? th.getMessage() : null;
|
|
com.fyber.inneractive.sdk.web.g0 g0Var = cVar.g.a;
|
|
String str = (!(g0Var instanceof com.fyber.inneractive.sdk.web.b) || (aVar = ((com.fyber.inneractive.sdk.web.b) g0Var).O) == null) ? null : aVar.b;
|
|
if (!TextUtils.isEmpty(message)) {
|
|
try {
|
|
jSONObject.put("error", message);
|
|
} catch (Exception unused) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "error", message);
|
|
}
|
|
}
|
|
if (!TextUtils.isEmpty(str)) {
|
|
try {
|
|
jSONObject.put("version", str);
|
|
} catch (Exception unused2) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "version", str);
|
|
}
|
|
}
|
|
Boolean valueOf = Boolean.valueOf(cVar.j);
|
|
try {
|
|
jSONObject.put("loaded_from_cache", valueOf);
|
|
} catch (Exception unused3) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "loaded_from_cache", valueOf);
|
|
}
|
|
aVar2.f.put(jSONObject);
|
|
aVar2.a((String) null);
|
|
}
|
|
|
|
public final void a(com.fyber.inneractive.sdk.model.vast.c cVar) {
|
|
boolean containsKey;
|
|
String str;
|
|
int i = com.fyber.inneractive.sdk.util.u.a[com.fyber.inneractive.sdk.util.w.Mraid.ordinal()];
|
|
if (i == 1) {
|
|
containsKey = b.a.a.a.containsKey(com.fyber.inneractive.sdk.response.a.RETURNED_ADTYPE_HTML);
|
|
} else if (i != 2) {
|
|
return;
|
|
} else {
|
|
containsKey = b.a.a.a.containsKey(com.fyber.inneractive.sdk.response.a.RETURNED_ADTYPE_VAST);
|
|
}
|
|
if (containsKey) {
|
|
com.fyber.inneractive.sdk.network.r rVar = com.fyber.inneractive.sdk.network.r.VAST_COMPANION_LOAD_ATTEMPT;
|
|
InneractiveAdRequest inneractiveAdRequest = this.b;
|
|
com.fyber.inneractive.sdk.response.g gVar = this.c;
|
|
com.fyber.inneractive.sdk.config.global.s sVar = this.d;
|
|
new s.a(rVar, inneractiveAdRequest, gVar, sVar == null ? null : sVar.c()).a((String) null);
|
|
this.k++;
|
|
int i2 = IAlog.a;
|
|
cVar.a.name();
|
|
com.fyber.inneractive.sdk.player.controller.c cVar2 = new com.fyber.inneractive.sdk.player.controller.c(this.f, this.j, cVar.a, null);
|
|
com.fyber.inneractive.sdk.flow.vast.e eVar = new com.fyber.inneractive.sdk.flow.vast.e(cVar2);
|
|
d dVar = new d(eVar, cVar);
|
|
String str2 = cVar.f;
|
|
com.fyber.inneractive.sdk.model.vast.h hVar = cVar.a;
|
|
if (hVar == com.fyber.inneractive.sdk.model.vast.h.Iframe) {
|
|
String c2 = com.fyber.inneractive.sdk.util.o.c("fyb_iframe_endcard_tmpl.html");
|
|
if (!TextUtils.isEmpty(c2)) {
|
|
str2 = c2.replace("$__IMGSRC__$", cVar.f).replace("$__SrcIframeUrl__$", cVar.f);
|
|
}
|
|
} else if (hVar == com.fyber.inneractive.sdk.model.vast.h.Static && cVar.b == com.fyber.inneractive.sdk.model.vast.j.Gif) {
|
|
eVar.g.b();
|
|
com.fyber.inneractive.sdk.web.g0 g0Var = eVar.g.a;
|
|
if (g0Var != null) {
|
|
g0Var.F = false;
|
|
}
|
|
String c3 = com.fyber.inneractive.sdk.util.o.c("fyb_static_endcard_tmpl.html");
|
|
if (!TextUtils.isEmpty(c3)) {
|
|
str2 = c3.replace("$__IMGSRC__$", cVar.f);
|
|
}
|
|
if (!TextUtils.isEmpty(str2) && (str = cVar.g) != null) {
|
|
str2 = str2.replace("$__IMGHREF__$", str.replace("\"", "\\\""));
|
|
}
|
|
}
|
|
com.fyber.inneractive.sdk.web.g0 g0Var2 = cVar2.a;
|
|
if (g0Var2 != null) {
|
|
if (g0Var2.r == null) {
|
|
g0Var2.setAdRequest(this.b);
|
|
}
|
|
if (g0Var2.t == null) {
|
|
g0Var2.setAdResponse(this.c);
|
|
}
|
|
}
|
|
cVar2.a(str2, (f.b) dVar, true);
|
|
}
|
|
}
|
|
|
|
public static com.fyber.inneractive.sdk.flow.vast.a a() {
|
|
com.fyber.inneractive.sdk.flow.vast.a aVar = new com.fyber.inneractive.sdk.flow.vast.a();
|
|
ImageView imageView = new ImageView(IAConfigManager.L.u.a());
|
|
aVar.b = imageView;
|
|
imageView.setId(R.id.ia_inneractive_vast_endcard_static);
|
|
aVar.b.setContentDescription("inneractive_vast_endcard_static");
|
|
return aVar;
|
|
}
|
|
}
|