- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
88 lines
3.0 KiB
Java
88 lines
3.0 KiB
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.KeyEvent;
|
|
import android.webkit.WebView;
|
|
import com.ironsource.qj;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class fj extends WebView implements rj {
|
|
private qj a;
|
|
private kn b;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public fj(Context context) {
|
|
super(context);
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public fj(Context context, AttributeSet attrs) {
|
|
super(context, attrs);
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(attrs, "attrs");
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public fj(Context context, AttributeSet attrs, int i) {
|
|
super(context, attrs, i);
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(attrs, "attrs");
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public fj(Context context, qj javascriptEngine) {
|
|
this(context);
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(javascriptEngine, "javascriptEngine");
|
|
this.a = javascriptEngine;
|
|
}
|
|
|
|
public /* synthetic */ fj(Context context, qj qjVar, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(context, (i & 2) != 0 ? new qj.a(0, 1, null) : qjVar);
|
|
}
|
|
|
|
public final void a(kn knVar) {
|
|
this.b = knVar;
|
|
}
|
|
|
|
@Override // com.ironsource.rj
|
|
public void a(String script) {
|
|
Intrinsics.checkNotNullParameter(script, "script");
|
|
qj qjVar = this.a;
|
|
qj qjVar2 = null;
|
|
if (qjVar == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("javascriptEngine");
|
|
qjVar = null;
|
|
}
|
|
if (!qjVar.a()) {
|
|
qj qjVar3 = this.a;
|
|
if (qjVar3 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("javascriptEngine");
|
|
qjVar3 = null;
|
|
}
|
|
qjVar3.a(this);
|
|
}
|
|
qj qjVar4 = this.a;
|
|
if (qjVar4 == null) {
|
|
Intrinsics.throwUninitializedPropertyAccessException("javascriptEngine");
|
|
} else {
|
|
qjVar2 = qjVar4;
|
|
}
|
|
qjVar2.a(script);
|
|
}
|
|
|
|
@Override // android.webkit.WebView, android.view.View, android.view.KeyEvent.Callback
|
|
public boolean onKeyDown(int i, KeyEvent event) {
|
|
kn knVar;
|
|
Intrinsics.checkNotNullParameter(event, "event");
|
|
if (i == 4 && (knVar = this.b) != null && knVar.onBackButtonPressed()) {
|
|
return true;
|
|
}
|
|
return super.onKeyDown(i, event);
|
|
}
|
|
}
|