正在查看: Uptodown App Store v6.80 应用的 CustomWebView.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 CustomWebView.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.activities;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.TextView;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.uptodown.activities.CustomWebView;
import kotlin.jvm.internal.AbstractC1009g;
public final class CustomWebView extends AbstractC0740a {
public static final a L = new a(null);
private String J;
private String K;
public static final class a {
public a(AbstractC1009g abstractC1009g) {
this();
}
private a() {
}
}
public static final class b extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest request) {
kotlin.jvm.internal.m.e(request, "request");
return false;
}
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
kotlin.jvm.internal.m.e(view, "view");
kotlin.jvm.internal.m.e(url, "url");
return false;
}
}
public static final void c3(CustomWebView customWebView, View view) {
customWebView.getOnBackPressedDispatcher().onBackPressed();
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558462);
Bundle extras = getIntent().getExtras();
if (extras != null) {
if (extras.containsKey(CampaignEx.JSON_KEY_TITLE)) {
this.J = extras.getString(CampaignEx.JSON_KEY_TITLE);
}
if (extras.containsKey("url")) {
this.K = extras.getString("url");
}
}
((ImageView) findViewById(2131362283)).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CustomWebView.c3(CustomWebView.this, view);
}
});
TextView textView = (TextView) findViewById(2131364243);
textView.setTypeface(N1.k.g.x());
textView.setText(this.J);
WebView webView = (WebView) findViewById(2131364486);
webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setDisplayZoomControls(false);
webView.getSettings().setSupportZoom(true);
webView.setScrollBarStyle(33554432);
webView.setScrollbarFadingEnabled(true);
webView.setInitialScale(80);
webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setDatabaseEnabled(true);
webView.setWebViewClient(new b());
String str = this.K;
if (str != null) {
kotlin.jvm.internal.m.b(str);
webView.loadUrl(str);
}
}
}