- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
158 lines
5.4 KiB
Java
158 lines
5.4 KiB
Java
package com.fyber.inneractive.sdk.player.controller;
|
|
|
|
import android.view.View;
|
|
import com.fyber.inneractive.sdk.config.enums.Orientation;
|
|
import com.fyber.inneractive.sdk.config.i0;
|
|
import com.fyber.inneractive.sdk.player.enums.VideoClickOrigin;
|
|
import com.fyber.inneractive.sdk.ui.IAmraidWebViewController;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.fyber.inneractive.sdk.util.a0;
|
|
import com.fyber.inneractive.sdk.util.p0;
|
|
import com.fyber.inneractive.sdk.web.a;
|
|
import com.fyber.inneractive.sdk.web.j;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class u extends j.l {
|
|
public final /* synthetic */ o a;
|
|
|
|
public u(o oVar) {
|
|
this.a = oVar;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.h0
|
|
public final void a(String str, String str2) {
|
|
StringBuilder sb = new StringBuilder();
|
|
o oVar = this.a;
|
|
oVar.getClass();
|
|
sb.append(IAlog.a(oVar));
|
|
sb.append("web view callback: onSuspiciousNoUserWebActionDetected");
|
|
IAlog.a(sb.toString(), new Object[0]);
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.a(str, str2);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void b(boolean z) {
|
|
o oVar = this.a;
|
|
oVar.getClass();
|
|
IAlog.a("%sonCustomCloseButtonAvailableEnabled : %s", IAlog.a(oVar), Boolean.valueOf(z));
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert == 0 || !z) {
|
|
return;
|
|
}
|
|
listenert.g();
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void c() {
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.l();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void d() {
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.l();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.h0
|
|
public final void e() {
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.p();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void onClose() {
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.q();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void a() {
|
|
o oVar = this.a;
|
|
oVar.getClass();
|
|
IAlog.a("%sweb view callback: onClickedAndOpen", IAlog.a(oVar));
|
|
this.a.a(i0.b.COMPANION.e());
|
|
o oVar2 = this.a;
|
|
if (oVar2.g != 0) {
|
|
com.fyber.inneractive.sdk.player.c cVar = oVar2.a;
|
|
if (cVar != null) {
|
|
com.fyber.inneractive.sdk.model.vast.b bVar = ((com.fyber.inneractive.sdk.player.e) cVar).v;
|
|
com.fyber.inneractive.sdk.model.vast.c cVar2 = bVar != null ? bVar.i : null;
|
|
if (cVar2 != null) {
|
|
cVar.a(cVar2, VideoClickOrigin.COMPANION, com.fyber.inneractive.sdk.model.vast.v.EVENT_CLICK);
|
|
}
|
|
}
|
|
this.a.g.o();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.h0
|
|
public final a0.a a(String str, p0 p0Var, a.b bVar) {
|
|
o oVar = this.a;
|
|
oVar.getClass();
|
|
IAlog.a("%sweb view callback: onClicked", IAlog.a(oVar));
|
|
this.a.a(i0.b.COMPANION.e());
|
|
o oVar2 = this.a;
|
|
if (oVar2.g != 0) {
|
|
com.fyber.inneractive.sdk.player.c cVar = oVar2.a;
|
|
if (cVar != null) {
|
|
com.fyber.inneractive.sdk.model.vast.b bVar2 = ((com.fyber.inneractive.sdk.player.e) cVar).v;
|
|
com.fyber.inneractive.sdk.model.vast.c cVar2 = bVar2 != null ? bVar2.i : null;
|
|
if (cVar2 != null) {
|
|
cVar.a(cVar2, VideoClickOrigin.COMPANION, com.fyber.inneractive.sdk.model.vast.v.EVENT_CLICK);
|
|
} else if (o.a(oVar2)) {
|
|
com.fyber.inneractive.sdk.player.e eVar = (com.fyber.inneractive.sdk.player.e) this.a.a;
|
|
eVar.a(eVar.v, VideoClickOrigin.COMPANION, com.fyber.inneractive.sdk.model.vast.v.EVENT_CLICK);
|
|
}
|
|
}
|
|
com.fyber.inneractive.sdk.player.ui.s sVar = this.a.d;
|
|
if (sVar != null) {
|
|
sVar.f();
|
|
}
|
|
return this.a.g.a(str, p0Var, bVar, false);
|
|
}
|
|
return new a0.a(a0.d.FAILED, new Exception("mListener is null, internal SDK fatal error"));
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final boolean a(String str) {
|
|
View endCardView = this.a.d.getEndCardView();
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert == 0) {
|
|
return false;
|
|
}
|
|
listenert.a(endCardView, str);
|
|
return true;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void a(IAmraidWebViewController.MraidVideoFailedToDisplayError mraidVideoFailedToDisplayError) {
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.onPlayerError();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.web.j.f
|
|
public final void a(boolean z, Orientation orientation) {
|
|
o oVar = this.a;
|
|
oVar.getClass();
|
|
IAlog.a("%sonOrientationProperties: allowOrientationChange: %s, forceOrientationType: %s", IAlog.a(oVar), Boolean.valueOf(z), orientation.toString());
|
|
ListenerT listenert = this.a.g;
|
|
if (listenert != 0) {
|
|
listenert.a(z, orientation);
|
|
}
|
|
}
|
|
}
|