导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - NewsActivity.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 NewsActivity.java JAVA 源代码文件

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


package com.fancyclean.boost.news.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.WebSettings;
import android.webkit.WebView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import c.p;
import com.adtiny.core.d;
import com.thinkyeah.common.ui.view.HorizontalProgressBar;
import com.thinkyeah.common.ui.view.TitleBar;
import f.g;
import ha.c;
import hl.b;
import java.util.ArrayList;
import java.util.HashMap;
import v7.a;
import vj.h;

public class NewsActivity extends a<b> {
    public static final h r = new h("NewsActivity");
    public TitleBar l;
    public HorizontalProgressBar m;
    public SwipeRefreshLayout n;
    public WebView o;
    public TitleBar.i p;
    public TitleBar.i q;

    public static void X2(Activity activity, String str, String str2, String str3, boolean z10) {
        Intent intent = new Intent(activity, (Class<?>) NewsActivity.class);
        intent.putExtra("news://contnet_url", str);
        intent.putExtra("news://tracking_id", str2);
        intent.putExtra("news://news_title", str3);
        intent.putExtra("news://is_delayed", z10);
        activity.startActivity(intent);
    }

    public final void applyOverrideConfiguration(Configuration configuration) {
        if (Build.VERSION.SDK_INT <= 25) {
            return;
        }
        super/*wj.c*/.applyOverrideConfiguration(configuration);
    }

    public final void finish() {
        d.b().h(this, "I_News", (d.l) null);
        super/*android.app.Activity*/.finish();
    }

    public final void onBackPressed() {
        if (this.o.canGoBack()) {
            this.o.goBack();
        } else {
            super/*androidx.activity.ComponentActivity*/.onBackPressed();
        }
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558497);
        Intent intent = getIntent();
        boolean booleanExtra = intent.getBooleanExtra("news://is_debug", false);
        String stringExtra = intent.getStringExtra("news://contnet_url");
        String stringExtra2 = intent.getStringExtra("news://tracking_id");
        String stringExtra3 = intent.getStringExtra("news://news_title");
        boolean booleanExtra2 = intent.getBooleanExtra("news://is_delayed", false);
        String l = android.support.v4.media.b.l("contentUrl: ", stringExtra);
        h hVar = r;
        hVar.c(l);
        if (!booleanExtra) {
            hVar.c("trackingId: " + stringExtra2);
            hVar.c("newsTitle: " + stringExtra3);
            hVar.c("isDelayed: " + booleanExtra2);
        }
        if (booleanExtra) {
            stringExtra3 = "Debug";
        }
        TitleBar.i iVar = new TitleBar.i();
        iVar.c = new TitleBar.b(2131231338);
        iVar.b = new TitleBar.e(2131886950);
        iVar.g = true;
        int i = 23;
        iVar.h = new androidx.core.view.inputmethod.b(this, 23);
        this.p = iVar;
        TitleBar.i iVar2 = new TitleBar.i();
        iVar2.c = new TitleBar.b(2131231343);
        iVar2.b = new TitleBar.e(2131886824);
        iVar2.g = true;
        iVar2.h = new g(this, 17);
        this.q = iVar2;
        TitleBar findViewById = findViewById(2131363196);
        this.l = findViewById;
        TitleBar.a configure = findViewById.getConfigure();
        if (TextUtils.isEmpty(stringExtra3)) {
            stringExtra3 = getString(2131887252);
        }
        configure.f(stringExtra3);
        TitleBar.c cVar = new TitleBar.c(new TitleBar.b(2131231362), new t4.b(this, i));
        TitleBar titleBar = configure.a;
        titleBar.g = cVar;
        TitleBar.i iVar3 = this.p;
        if (titleBar.h == null) {
            titleBar.h = new ArrayList();
        }
        titleBar.h.add(iVar3);
        TitleBar.i iVar4 = this.q;
        if (titleBar.h == null) {
            titleBar.h = new ArrayList();
        }
        titleBar.h.add(iVar4);
        configure.a();
        HorizontalProgressBar findViewById2 = findViewById(2131362921);
        this.m = findViewById2;
        findViewById2.setMax(100);
        WebView webView = (WebView) findViewById(2131363878);
        this.o = webView;
        webView.loadUrl(stringExtra);
        this.o.getSettings().setJavaScriptEnabled(true);
        WebSettings settings = this.o.getSettings();
        settings.setUseWideViewPort(true);
        settings.setLoadWithOverviewMode(false);
        this.o.setScrollBarStyle(33554432);
        this.o.setWebViewClient(new c(this));
        this.o.setWebChromeClient(new ha.d(this));
        SwipeRefreshLayout findViewById3 = findViewById(2131363116);
        this.n = findViewById3;
        findViewById3.setOnRefreshListener(new p(this, 15));
        if (bundle != null || booleanExtra) {
            return;
        }
        tk.b a = tk.b.a();
        HashMap q = android.support.v4.media.c.q("tracking_id", stringExtra2);
        q.put("is_delayed", Boolean.valueOf(booleanExtra2));
        a.b("push_news_opened", q);
    }

    public final void onDestroy() {
        this.o.destroy();
        this.o = null;
        super/*il.b*/.onDestroy();
    }
}