正在查看: Atlys v4.8.7 应用的 MockInterviewWebviewFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 MockInterviewWebviewFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.atlys.android.usa.ui.appointmentFound;
import B5.h;
import Bi.e;
import Bn.k;
import Bn.n;
import Bn.q;
import Gh.r2;
import Oh.g;
import W9.m;
import Z9.C0829a;
import Z9.G;
import Z9.H;
import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.PermissionRequest;
import android.webkit.ValueCallback;
import android.webkit.WebBackForwardList;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;
import androidx.core.content.FileProvider;
import androidx.core.view.AbstractC0970a0;
import androidx.core.view.N;
import androidx.fragment.app.F;
import androidx.lifecycle.z0;
import com.atlys.android.usa.ui.appointmentFound.MockInterviewWebviewFragment;
import da.t;
import dk.c;
import e.C1693J;
import e0.AbstractC1742c;
import gn.l0;
import h.AbstractC2092d;
import h.C2089a;
import h.InterfaceC2090b;
import i.C2169c;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.WeakHashMap;
import kotlin.Metadata;
import kotlin.jvm.internal.l;
import kotlinx.serialization.json.JsonNull;
import kotlinx.serialization.json.d;
import pj.f;
import pj.j;
import sj.b;
import ye.v0;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/atlys/android/usa/ui/appointmentFound/MockInterviewWebviewFragment;", "Landroidx/fragment/app/F;", "<init>", "()V", "app_release"}, k = 1, mv = {1, AbstractC1742c.f23923d, 0})
public final class MockInterviewWebviewFragment extends F implements b {
public final AbstractC2092d f23108A;
public final AbstractC2092d f23109B;
public final AbstractC2092d f23110C;
public final AbstractC2092d f23111D;
public j f23112j;
public boolean f23113k;
public volatile f l;
public WebView f23116o;
public ProgressBar f23117p;
public e f23118q;
public String f23119r;
public String f23120s;
public boolean f23121t;
public m f23123v;
public dn.F f23124w;
public ValueCallback f23125x;
public PermissionRequest f23126y;
public Uri f23127z;
public final Object f23114m = new Object();
public boolean f23115n = false;
public final String f23122u = "https://www.atlys.com/validate-token";
public MockInterviewWebviewFragment() {
final int i10 = 0;
AbstractC2092d registerForActivityResult = registerForActivityResult(new g(10), new InterfaceC2090b(this) {
public final MockInterviewWebviewFragment f16382b;
{
this.f16382b = this;
}
@Override
public final void a(Object obj) {
wl.y yVar;
ValueCallback valueCallback;
MockInterviewWebviewFragment mockInterviewWebviewFragment = this.f16382b;
switch (i10) {
case 0:
boolean booleanValue = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest = mockInterviewWebviewFragment.f23126y;
wl.y yVar2 = wl.y.a;
if (permissionRequest != null) {
if (booleanValue) {
permissionRequest.grant(new String[]{"android.webkit.resource.VIDEO_CAPTURE"});
} else {
permissionRequest.deny();
}
mockInterviewWebviewFragment.f23126y = null;
yVar = yVar2;
} else {
yVar = null;
}
if (yVar == null) {
if (!booleanValue) {
ValueCallback valueCallback2 = mockInterviewWebviewFragment.f23125x;
if (valueCallback2 != null) {
valueCallback2.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
} else {
try {
File n10 = mockInterviewWebviewFragment.n();
Uri uriForFile = FileProvider.getUriForFile(mockInterviewWebviewFragment.requireContext(), mockInterviewWebviewFragment.requireActivity().getPackageName() + ".fileprovider", n10);
mockInterviewWebviewFragment.f23127z = uriForFile;
if (uriForFile != null) {
mockInterviewWebviewFragment.f23109B.a(uriForFile, null);
} else {
yVar2 = null;
}
if (yVar2 == null) {
ValueCallback valueCallback3 = mockInterviewWebviewFragment.f23125x;
if (valueCallback3 != null) {
valueCallback3.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
}
} catch (IOException e4) {
e4.printStackTrace();
ValueCallback valueCallback4 = mockInterviewWebviewFragment.f23125x;
if (valueCallback4 != null) {
valueCallback4.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
return;
}
}
}
break;
case 1:
boolean booleanValue2 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
if (booleanValue2) {
Uri uri = mockInterviewWebviewFragment.f23127z;
if (uri != null && (valueCallback = mockInterviewWebviewFragment.f23125x) != null) {
valueCallback.onReceiveValue(new Uri[]{uri});
}
} else {
ValueCallback valueCallback5 = mockInterviewWebviewFragment.f23125x;
if (valueCallback5 != null) {
valueCallback5.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
mockInterviewWebviewFragment.f23127z = null;
break;
case 2:
C2089a c2089a = (C2089a) obj;
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
kotlin.jvm.internal.l.h(c2089a, "result");
int i11 = c2089a.f25995a;
if (i11 == -1) {
Uri[] parseResult = WebChromeClient.FileChooserParams.parseResult(i11, c2089a.f25996b);
ValueCallback valueCallback6 = mockInterviewWebviewFragment.f23125x;
if (valueCallback6 != null) {
valueCallback6.onReceiveValue(parseResult);
}
} else {
ValueCallback valueCallback7 = mockInterviewWebviewFragment.f23125x;
if (valueCallback7 != null) {
valueCallback7.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
break;
default:
boolean booleanValue3 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest2 = mockInterviewWebviewFragment.f23126y;
if (permissionRequest2 != null) {
if (booleanValue3) {
permissionRequest2.grant(new String[]{"android.webkit.resource.AUDIO_CAPTURE"});
} else {
permissionRequest2.deny();
}
mockInterviewWebviewFragment.f23126y = null;
break;
}
break;
}
}
});
l.g(registerForActivityResult, "registerForActivityResult(...)");
this.f23108A = registerForActivityResult;
final int i11 = 1;
AbstractC2092d registerForActivityResult2 = registerForActivityResult(new C2169c(), new InterfaceC2090b(this) {
public final MockInterviewWebviewFragment f16382b;
{
this.f16382b = this;
}
@Override
public final void a(Object obj) {
wl.y yVar;
ValueCallback valueCallback;
MockInterviewWebviewFragment mockInterviewWebviewFragment = this.f16382b;
switch (i11) {
case 0:
boolean booleanValue = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest = mockInterviewWebviewFragment.f23126y;
wl.y yVar2 = wl.y.a;
if (permissionRequest != null) {
if (booleanValue) {
permissionRequest.grant(new String[]{"android.webkit.resource.VIDEO_CAPTURE"});
} else {
permissionRequest.deny();
}
mockInterviewWebviewFragment.f23126y = null;
yVar = yVar2;
} else {
yVar = null;
}
if (yVar == null) {
if (!booleanValue) {
ValueCallback valueCallback2 = mockInterviewWebviewFragment.f23125x;
if (valueCallback2 != null) {
valueCallback2.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
} else {
try {
File n10 = mockInterviewWebviewFragment.n();
Uri uriForFile = FileProvider.getUriForFile(mockInterviewWebviewFragment.requireContext(), mockInterviewWebviewFragment.requireActivity().getPackageName() + ".fileprovider", n10);
mockInterviewWebviewFragment.f23127z = uriForFile;
if (uriForFile != null) {
mockInterviewWebviewFragment.f23109B.a(uriForFile, null);
} else {
yVar2 = null;
}
if (yVar2 == null) {
ValueCallback valueCallback3 = mockInterviewWebviewFragment.f23125x;
if (valueCallback3 != null) {
valueCallback3.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
}
} catch (IOException e4) {
e4.printStackTrace();
ValueCallback valueCallback4 = mockInterviewWebviewFragment.f23125x;
if (valueCallback4 != null) {
valueCallback4.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
return;
}
}
}
break;
case 1:
boolean booleanValue2 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
if (booleanValue2) {
Uri uri = mockInterviewWebviewFragment.f23127z;
if (uri != null && (valueCallback = mockInterviewWebviewFragment.f23125x) != null) {
valueCallback.onReceiveValue(new Uri[]{uri});
}
} else {
ValueCallback valueCallback5 = mockInterviewWebviewFragment.f23125x;
if (valueCallback5 != null) {
valueCallback5.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
mockInterviewWebviewFragment.f23127z = null;
break;
case 2:
C2089a c2089a = (C2089a) obj;
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
kotlin.jvm.internal.l.h(c2089a, "result");
int i112 = c2089a.f25995a;
if (i112 == -1) {
Uri[] parseResult = WebChromeClient.FileChooserParams.parseResult(i112, c2089a.f25996b);
ValueCallback valueCallback6 = mockInterviewWebviewFragment.f23125x;
if (valueCallback6 != null) {
valueCallback6.onReceiveValue(parseResult);
}
} else {
ValueCallback valueCallback7 = mockInterviewWebviewFragment.f23125x;
if (valueCallback7 != null) {
valueCallback7.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
break;
default:
boolean booleanValue3 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest2 = mockInterviewWebviewFragment.f23126y;
if (permissionRequest2 != null) {
if (booleanValue3) {
permissionRequest2.grant(new String[]{"android.webkit.resource.AUDIO_CAPTURE"});
} else {
permissionRequest2.deny();
}
mockInterviewWebviewFragment.f23126y = null;
break;
}
break;
}
}
});
l.g(registerForActivityResult2, "registerForActivityResult(...)");
this.f23109B = registerForActivityResult2;
final int i12 = 2;
AbstractC2092d registerForActivityResult3 = registerForActivityResult(new g(11), new InterfaceC2090b(this) {
public final MockInterviewWebviewFragment f16382b;
{
this.f16382b = this;
}
@Override
public final void a(Object obj) {
wl.y yVar;
ValueCallback valueCallback;
MockInterviewWebviewFragment mockInterviewWebviewFragment = this.f16382b;
switch (i12) {
case 0:
boolean booleanValue = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest = mockInterviewWebviewFragment.f23126y;
wl.y yVar2 = wl.y.a;
if (permissionRequest != null) {
if (booleanValue) {
permissionRequest.grant(new String[]{"android.webkit.resource.VIDEO_CAPTURE"});
} else {
permissionRequest.deny();
}
mockInterviewWebviewFragment.f23126y = null;
yVar = yVar2;
} else {
yVar = null;
}
if (yVar == null) {
if (!booleanValue) {
ValueCallback valueCallback2 = mockInterviewWebviewFragment.f23125x;
if (valueCallback2 != null) {
valueCallback2.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
} else {
try {
File n10 = mockInterviewWebviewFragment.n();
Uri uriForFile = FileProvider.getUriForFile(mockInterviewWebviewFragment.requireContext(), mockInterviewWebviewFragment.requireActivity().getPackageName() + ".fileprovider", n10);
mockInterviewWebviewFragment.f23127z = uriForFile;
if (uriForFile != null) {
mockInterviewWebviewFragment.f23109B.a(uriForFile, null);
} else {
yVar2 = null;
}
if (yVar2 == null) {
ValueCallback valueCallback3 = mockInterviewWebviewFragment.f23125x;
if (valueCallback3 != null) {
valueCallback3.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
}
} catch (IOException e4) {
e4.printStackTrace();
ValueCallback valueCallback4 = mockInterviewWebviewFragment.f23125x;
if (valueCallback4 != null) {
valueCallback4.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
return;
}
}
}
break;
case 1:
boolean booleanValue2 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
if (booleanValue2) {
Uri uri = mockInterviewWebviewFragment.f23127z;
if (uri != null && (valueCallback = mockInterviewWebviewFragment.f23125x) != null) {
valueCallback.onReceiveValue(new Uri[]{uri});
}
} else {
ValueCallback valueCallback5 = mockInterviewWebviewFragment.f23125x;
if (valueCallback5 != null) {
valueCallback5.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
mockInterviewWebviewFragment.f23127z = null;
break;
case 2:
C2089a c2089a = (C2089a) obj;
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
kotlin.jvm.internal.l.h(c2089a, "result");
int i112 = c2089a.f25995a;
if (i112 == -1) {
Uri[] parseResult = WebChromeClient.FileChooserParams.parseResult(i112, c2089a.f25996b);
ValueCallback valueCallback6 = mockInterviewWebviewFragment.f23125x;
if (valueCallback6 != null) {
valueCallback6.onReceiveValue(parseResult);
}
} else {
ValueCallback valueCallback7 = mockInterviewWebviewFragment.f23125x;
if (valueCallback7 != null) {
valueCallback7.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
break;
default:
boolean booleanValue3 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest2 = mockInterviewWebviewFragment.f23126y;
if (permissionRequest2 != null) {
if (booleanValue3) {
permissionRequest2.grant(new String[]{"android.webkit.resource.AUDIO_CAPTURE"});
} else {
permissionRequest2.deny();
}
mockInterviewWebviewFragment.f23126y = null;
break;
}
break;
}
}
});
l.g(registerForActivityResult3, "registerForActivityResult(...)");
this.f23110C = registerForActivityResult3;
final int i13 = 3;
AbstractC2092d registerForActivityResult4 = registerForActivityResult(new g(10), new InterfaceC2090b(this) {
public final MockInterviewWebviewFragment f16382b;
{
this.f16382b = this;
}
@Override
public final void a(Object obj) {
wl.y yVar;
ValueCallback valueCallback;
MockInterviewWebviewFragment mockInterviewWebviewFragment = this.f16382b;
switch (i13) {
case 0:
boolean booleanValue = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest = mockInterviewWebviewFragment.f23126y;
wl.y yVar2 = wl.y.a;
if (permissionRequest != null) {
if (booleanValue) {
permissionRequest.grant(new String[]{"android.webkit.resource.VIDEO_CAPTURE"});
} else {
permissionRequest.deny();
}
mockInterviewWebviewFragment.f23126y = null;
yVar = yVar2;
} else {
yVar = null;
}
if (yVar == null) {
if (!booleanValue) {
ValueCallback valueCallback2 = mockInterviewWebviewFragment.f23125x;
if (valueCallback2 != null) {
valueCallback2.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
} else {
try {
File n10 = mockInterviewWebviewFragment.n();
Uri uriForFile = FileProvider.getUriForFile(mockInterviewWebviewFragment.requireContext(), mockInterviewWebviewFragment.requireActivity().getPackageName() + ".fileprovider", n10);
mockInterviewWebviewFragment.f23127z = uriForFile;
if (uriForFile != null) {
mockInterviewWebviewFragment.f23109B.a(uriForFile, null);
} else {
yVar2 = null;
}
if (yVar2 == null) {
ValueCallback valueCallback3 = mockInterviewWebviewFragment.f23125x;
if (valueCallback3 != null) {
valueCallback3.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
break;
}
} catch (IOException e4) {
e4.printStackTrace();
ValueCallback valueCallback4 = mockInterviewWebviewFragment.f23125x;
if (valueCallback4 != null) {
valueCallback4.onReceiveValue(null);
}
mockInterviewWebviewFragment.f23125x = null;
return;
}
}
}
break;
case 1:
boolean booleanValue2 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
if (booleanValue2) {
Uri uri = mockInterviewWebviewFragment.f23127z;
if (uri != null && (valueCallback = mockInterviewWebviewFragment.f23125x) != null) {
valueCallback.onReceiveValue(new Uri[]{uri});
}
} else {
ValueCallback valueCallback5 = mockInterviewWebviewFragment.f23125x;
if (valueCallback5 != null) {
valueCallback5.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
mockInterviewWebviewFragment.f23127z = null;
break;
case 2:
C2089a c2089a = (C2089a) obj;
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
kotlin.jvm.internal.l.h(c2089a, "result");
int i112 = c2089a.f25995a;
if (i112 == -1) {
Uri[] parseResult = WebChromeClient.FileChooserParams.parseResult(i112, c2089a.f25996b);
ValueCallback valueCallback6 = mockInterviewWebviewFragment.f23125x;
if (valueCallback6 != null) {
valueCallback6.onReceiveValue(parseResult);
}
} else {
ValueCallback valueCallback7 = mockInterviewWebviewFragment.f23125x;
if (valueCallback7 != null) {
valueCallback7.onReceiveValue(null);
}
}
mockInterviewWebviewFragment.f23125x = null;
break;
default:
boolean booleanValue3 = ((Boolean) obj).booleanValue();
kotlin.jvm.internal.l.h(mockInterviewWebviewFragment, "this$0");
PermissionRequest permissionRequest2 = mockInterviewWebviewFragment.f23126y;
if (permissionRequest2 != null) {
if (booleanValue3) {
permissionRequest2.grant(new String[]{"android.webkit.resource.AUDIO_CAPTURE"});
} else {
permissionRequest2.deny();
}
mockInterviewWebviewFragment.f23126y = null;
break;
}
break;
}
}
});
l.g(registerForActivityResult4, "registerForActivityResult(...)");
this.f23111D = registerForActivityResult4;
}
public static final String m(MockInterviewWebviewFragment mockInterviewWebviewFragment, String str) {
mockInterviewWebviewFragment.getClass();
q n10 = v0.n(C0829a.f16388g);
try {
l.h(str, "string");
kotlinx.serialization.json.b bVar = (kotlinx.serialization.json.b) k.f((kotlinx.serialization.json.b) n10.b(str, n.a)).get("action");
if (bVar == null) {
return null;
}
d g10 = k.g(bVar);
if (g10 instanceof JsonNull) {
return null;
}
return g10.a();
} catch (Exception unused) {
return null;
}
}
public final Object e0() {
if (this.l == null) {
synchronized (this.f23114m) {
try {
if (this.l == null) {
this.l = new f(this);
}
} finally {
}
}
}
return this.l.e0();
}
@Override
public final Context getContext() {
if (super.getContext() == null && !this.f23113k) {
return null;
}
o();
return this.f23112j;
}
@Override
public final z0 getDefaultViewModelProviderFactory() {
return dj.q.F(this, super.getDefaultViewModelProviderFactory());
}
public final File n() {
File createTempFile = File.createTempFile(r2.o("JPEG_", new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(new Date()), "_"), ".jpg", requireActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES));
l.g(createTempFile, "createTempFile(...)");
return createTempFile;
}
public final void o() {
if (this.f23112j == null) {
this.f23112j = new j(super.getContext(), this);
this.f23113k = c.M(super.getContext());
}
}
@Override
public final void onAttach(Context context) {
super.onAttach(context);
o();
p();
}
@Override
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i10 = 1;
l.h(layoutInflater, "inflater");
View inflate = layoutInflater.inflate(2131558508, viewGroup, false);
l.e(inflate);
X0.d dVar = new X0.d(6);
WeakHashMap weakHashMap = AbstractC0970a0.f18262a;
N.u(inflate, dVar);
View findViewById = inflate.findViewById(2131363293);
l.g(findViewById, "findViewById(...)");
this.f23116o = (WebView) findViewById;
View findViewById2 = inflate.findViewById(2131362941);
l.g(findViewById2, "findViewById(...)");
this.f23117p = (ProgressBar) findViewById2;
this.f23119r = requireArguments().getString("webview_url");
this.f23120s = requireArguments().getString("application_id");
this.f23121t = requireArguments().getBoolean("through_magic_link");
WebView webView = this.f23116o;
if (webView == null) {
l.o("webView");
throw null;
}
webView.setWebViewClient(new WebViewClient());
WebView webView2 = this.f23116o;
if (webView2 == null) {
l.o("webView");
throw null;
}
WebSettings settings = webView2.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
settings.setAllowFileAccess(true);
settings.setAllowContentAccess(true);
settings.setMediaPlaybackRequiresUserGesture(false);
settings.setCacheMode(2);
WebView webView3 = this.f23116o;
if (webView3 == null) {
l.o("webView");
throw null;
}
webView3.addJavascriptInterface(new G(this), "AndroidInterface");
WebView webView4 = this.f23116o;
if (webView4 != null) {
webView4.setWebChromeClient(new P6.l(this, i10));
return inflate;
}
l.o("webView");
throw null;
}
@Override
public final void onDestroyView() {
super.onDestroyView();
PermissionRequest permissionRequest = this.f23126y;
if (permissionRequest != null) {
permissionRequest.deny();
}
this.f23126y = null;
ValueCallback valueCallback = this.f23125x;
if (valueCallback != null) {
valueCallback.onReceiveValue(null);
}
this.f23125x = null;
}
@Override
public final LayoutInflater onGetLayoutInflater(Bundle bundle) {
LayoutInflater onGetLayoutInflater = super.onGetLayoutInflater(bundle);
return onGetLayoutInflater.cloneInContext(new j(onGetLayoutInflater, this));
}
@Override
public final void onViewCreated(View view, Bundle bundle) {
l.h(view, "view");
super.onViewCreated(view, bundle);
String str = this.f23119r;
if (str != null) {
WebView webView = this.f23116o;
if (webView == null) {
l.o("webView");
throw null;
}
webView.loadUrl(str);
}
ProgressBar progressBar = this.f23117p;
if (progressBar == null) {
l.o("progressBar");
throw null;
}
progressBar.setVisibility(8);
this.f23118q = new e(this, 1);
C1693J onBackPressedDispatcher = requireActivity().getOnBackPressedDispatcher();
androidx.lifecycle.G viewLifecycleOwner = getViewLifecycleOwner();
l.g(viewLifecycleOwner, "getViewLifecycleOwner(...)");
e eVar = this.f23118q;
if (eVar != null) {
onBackPressedDispatcher.a(viewLifecycleOwner, eVar);
} else {
l.o("onBackPressedCallback");
throw null;
}
}
public final void p() {
if (this.f23115n) {
return;
}
this.f23115n = true;
B5.k kVar = ((h) ((H) e0())).f2550a;
this.f23123v = (m) kVar.f2562H.get();
this.f23124w = (dn.F) kVar.f2588r.get();
}
public final void q() {
if (!this.f23121t) {
l0 l0Var = Y9.H.f15543a;
dn.F f10 = this.f23124w;
if (f10 == null) {
l.o("coroutineScope");
throw null;
}
dn.G.C(f10, (Al.k) null, 0, new Y9.G(2, null), 3);
}
if (this.f23121t) {
WebView webView = this.f23116o;
if (webView == null) {
l.o("webView");
throw null;
}
if (webView.canGoBack()) {
WebView webView2 = this.f23116o;
if (webView2 == null) {
l.o("webView");
throw null;
}
WebBackForwardList copyBackForwardList = webView2.copyBackForwardList();
l.g(copyBackForwardList, "copyBackForwardList(...)");
int currentIndex = copyBackForwardList.getCurrentIndex();
if (currentIndex > 0) {
String url = copyBackForwardList.getItemAtIndex(currentIndex - 1).getUrl();
l.e(url);
if (bn.l.l0(url, this.f23122u, false)) {
dl.l.I(this).v();
return;
}
WebView webView3 = this.f23116o;
if (webView3 != null) {
webView3.goBack();
return;
} else {
l.o("webView");
throw null;
}
}
}
}
dl.l.I(this).v();
}
@Override
public final void onAttach(Activity activity) {
super.onAttach(activity);
j jVar = this.f23112j;
t.J(jVar == null || f.b(jVar) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new Object[0]);
o();
p();
}
}