导航菜单

页面标题

页面副标题

MX Player v1.97.8 - AdWebViewActivity.java 源代码

正在查看: MX Player v1.97.8 应用的 AdWebViewActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mxplay.monetize.mxads.webview;

import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.WebView;
import android.widget.ProgressBar;
import android.widget.TextView;
import defpackage.aq;
import defpackage.bq;
import defpackage.x7;

public class AdWebViewActivity extends pg0 {
    public static final int g = 0;
    public WebView b;
    public ProgressBar c;
    public TextView d;
    public String f;

    public final void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.m*/.onCreate(bundle);
        setContentView(2131558437);
        String stringExtra = getIntent().getStringExtra("extra_url");
        this.f = stringExtra;
        if (TextUtils.isEmpty(stringExtra)) {
            finish();
            return;
        }
        this.b = (WebView) findViewById(2131367794);
        this.c = (ProgressBar) findViewById(2131365517);
        this.d = (TextView) findViewById(2131367399);
        findViewById(2131362710).setOnClickListener(new x7(this, 2));
        this.d.setText(this.f);
        this.b.getSettings().setJavaScriptEnabled(true);
        this.b.getSettings().setBlockNetworkImage(false);
        this.b.getSettings().setMixedContentMode(0);
        this.b.getSettings().setCacheMode(-1);
        this.b.getSettings().setDatabaseEnabled(true);
        this.b.getSettings().setDomStorageEnabled(true);
        this.b.getSettings().setSupportZoom(true);
        this.b.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        this.b.getSettings().setBuiltInZoomControls(true);
        this.b.setWebChromeClient(new aq(this));
        this.b.setWebViewClient(new bq(this));
        this.b.loadUrl(this.f);
        this.c.setVisibility(0);
    }
}