正在查看: Moneyman v2.316.0.0 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Moneyman v2.316.0.0 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package Zo;
import Eh.y;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.metamap.sdk_components.crash_reporter.sentry.io.sentry.protocol.Request;
import kotlin.Pair;
import mx.moneyman.base.fragment.BaseDialog;
import mx.moneyman.databinding.DialogBelvoWebviewBinding;
import mx.moneyman.ui.dialog.BelvoDialog;
public final class b extends WebViewClient {
public final BelvoDialog a;
public final DialogBelvoWebviewBinding b;
public b(BelvoDialog belvoDialog, DialogBelvoWebviewBinding dialogBelvoWebviewBinding) {
this.a = belvoDialog;
this.b = dialogBelvoWebviewBinding;
}
@Override
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
Uri url;
String valueOf = String.valueOf(webResourceRequest != null ? webResourceRequest.getUrl() : null);
Bundle e = Xk.a.e(new Pair(Request.JsonKeys.URL, valueOf));
BelvoDialog belvoDialog = this.a;
belvoDialog.onButtonClick(5, e, false);
boolean v = y.v(valueOf, "https", false);
DialogBelvoWebviewBinding dialogBelvoWebviewBinding = this.b;
if (v) {
if (!valueOf.equals("https://belvo.com/es/privacy-policy-clients/")) {
return true;
}
if (webResourceRequest != null && (url = webResourceRequest.getUrl()) != null) {
ul.d.c(belvoDialog, url);
}
dialogBelvoWebviewBinding.wvBelvo.stopLoading();
return false;
}
dialogBelvoWebviewBinding.wvBelvo.stopLoading();
Uri url2 = webResourceRequest != null ? webResourceRequest.getUrl() : null;
String host = url2 != null ? url2.getHost() : null;
if (host != null) {
switch (host.hashCode()) {
case -1867169789:
if (host.equals("success")) {
BaseDialog.onButtonClick$default(belvoDialog, 0, Xk.a.e(new Pair("link", url2.getQueryParameter("link")), new Pair("institution", url2.getQueryParameter("institution"))), false, 4, null);
break;
}
break;
case 3127582:
if (host.equals("exit")) {
BaseDialog.onButtonClick$default(belvoDialog, 1, Xk.a.e(new Pair("lastEncounteredErrorCode", url2.getQueryParameter("last_encountered_error_code")), new Pair("lastEncounteredErrorMessage", url2.getQueryParameter("last_encountered_error_message"))), false, 4, null);
break;
}
break;
case 96784904:
if (host.equals("error")) {
BaseDialog.onButtonClick$default(belvoDialog, 2, Xk.a.e(new Pair("error", url2.getQueryParameter("error")), new Pair("errorMessage", url2.getQueryParameter("error_message"))), false, 4, null);
break;
}
break;
case 1124446108:
if (host.equals("warning")) {
BaseDialog.onButtonClick$default(belvoDialog, 3, Xk.a.e(new Pair("warning", url2.getQueryParameter("warning")), new Pair("warningMessage", url2.getQueryParameter("warning_message"))), false, 4, null);
break;
}
break;
}
}
dialogBelvoWebviewBinding.wvBelvo.goBack();
return false;
}
}