正在查看: MedEd v5.3.6 应用的 MoEActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MedEd v5.3.6 应用的 MoEActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moe.pushlibrary.activities;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import androidx.fragment.app.e;
import com.moe.pushlibrary.activities.MoEActivity;
import defpackage.DC1;
import defpackage.EC1;
import defpackage.To1$a;
import defpackage.Tp2;
import defpackage.yq2;
import in.juspay.hypersdk.core.PaymentConstants;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.j;
@Metadata
public final class MoEActivity extends e {
private final String tag = "Core_MoEActivity";
public static final String onCreate$lambda$0(MoEActivity moEActivity) {
return qe.a(new StringBuilder(), moEActivity.tag, " onCreate() : Web View disabled");
}
public static final String onCreate$lambda$1(MoEActivity moEActivity) {
return qe.a(new StringBuilder(), moEActivity.tag, " onCreate() : Rich landing url is empty, finishing activity.");
}
public static final String onCreate$lambda$2(MoEActivity moEActivity, boolean z) {
return moEActivity.tag + " onCreate() : is embedded web view? " + z;
}
public static final String onCreate$lambda$3(MoEActivity moEActivity) {
return qe.a(new StringBuilder(), moEActivity.tag, " onCreate() : ");
}
public static final String onCreate$lambda$4(MoEActivity moEActivity) {
return qe.a(new StringBuilder(), moEActivity.tag, " onCreate() : Could not load web view, finishing activity");
}
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
final int i = 0;
try {
Context applicationContext = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
if (!FU.c(applicationContext)) {
To1$a.d(To1.e, 0, null, null, new EW0(this, 1), 7);
finish();
return;
}
setContentView(yq2.activity_moe_rich_landing);
WebView webView = (WebView) findViewById(Tp2.moeRichLandingWebView);
Bundle extras = getIntent().getExtras();
if (extras != null && extras.containsKey("gcm_webUrl")) {
String string = extras.getString("gcm_webUrl");
if (string != null && !j.E(string)) {
final boolean z = extras.getBoolean("isEmbeddedWebView", false);
To1$a.d(To1.e, 0, null, null, new Function0() {
public final Object invoke() {
String onCreate$lambda$2;
int i2 = i;
boolean z2 = z;
Object obj = this;
switch (i2) {
case 0:
onCreate$lambda$2 = MoEActivity.onCreate$lambda$2((MoEActivity) obj, z2);
return onCreate$lambda$2;
default:
Function1 function1 = (Function1) obj;
Intrinsics.checkNotNullParameter(function1, "$onCheckedChange");
function1.invoke(Boolean.valueOf(!z2));
return Unit.a;
}
}
}, 7);
webView.loadUrl(string);
WebSettings settings = webView.getSettings();
MI0.a.getClass();
MI0.g.getClass();
settings.setJavaScriptEnabled(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.setWebViewClient(new WebViewClient() {
public static final String shouldOverrideUrlLoading$lambda$0(MoEActivity moEActivity, String str) {
String str2;
StringBuilder sb = new StringBuilder();
str2 = moEActivity.tag;
sb.append(str2);
sb.append(" shouldOverrideUrlLoading() : Url: ");
sb.append(str);
return sb.toString();
}
public static final String shouldOverrideUrlLoading$lambda$1(MoEActivity moEActivity) {
String str;
StringBuilder sb = new StringBuilder();
str = moEActivity.tag;
sb.append(str);
sb.append(" shouldOverrideUrlLoading() : ");
return sb.toString();
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView2, String str) {
Intrinsics.checkNotNullParameter(webView2, "view");
Intrinsics.checkNotNullParameter(str, PaymentConstants.URL);
try {
To1$a.d(To1.e, 0, null, null, new FC1(this, 0, str), 7);
Uri parse = Uri.parse(str);
String scheme = parse.getScheme();
if (!z || (!Intrinsics.b("http", scheme) && !Intrinsics.b("https", scheme))) {
this.startActivity(new Intent("android.intent.action.VIEW", parse));
return true;
}
return false;
} catch (Throwable th) {
To1$a.d(To1.e, 1, th, null, new dL0(this, 1), 4);
return false;
}
}
});
return;
}
To1$a.d(To1.e, 0, null, null, new FW0(this, 1), 7);
finish();
return;
}
finish();
} catch (Throwable th) {
To1$a to1$a = To1.e;
To1$a.d(to1$a, 1, th, null, new DC1(this, i), 4);
To1$a.d(to1$a, 0, null, null, new EC1(this, i), 7);
finish();
}
}
}