导航菜单

页面标题

页面副标题

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

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

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


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

import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.facebook.internal.i0;
import com.facebook.stetho.server.http.HttpStatus;
import com.fancyclean.boost.antivirus.ui.presenter.AntivirusAppsPresenter;
import com.fancyclean.boost.antivirus.ui.view.SpinSingleScanView;
import com.fancyclean.boost.common.avengine.model.ScanResult;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.view.TitleBar;
import gl.d;
import java.util.HashMap;
import k7.f;
import k7.i;
import ma.c;
import vj.h;

@d(AntivirusAppsPresenter.class)
public class AntivirusAppsActivity extends v7.d<v4.a> implements v4.b {
    public static final h F = new h("AntivirusAppsActivity");
    public TitleBar A;
    public TextView B;
    public ImageView C;
    public c D;
    public final i.b E = new i.b("N_TR_AntivirusApps");
    public b6.a q;
    public View r;
    public ObjectAnimator s;
    public int t;
    public int u;
    public String v;
    public SpinSingleScanView w;

    public View f136x;

    public View f137y;

    public View f138z;

    public static class a extends com.thinkyeah.common.ui.dialog.c<AntivirusAppsActivity> {
        public static final int c = 0;

        @NonNull
        public final Dialog onCreateDialog(@Nullable Bundle bundle) {
            c.a aVar = new c.a(getContext());
            aVar.g(2131887528);
            aVar.c(2131887633);
            aVar.e(2131886455, new t4.c(this, 0));
            aVar.d(2131886274, (DialogInterface.OnClickListener) null);
            return aVar.a();
        }
    }

    @Override
    public final void Q0() {
        this.f137y.setVisibility(8);
        this.s.reverse();
        ml.b.u(getWindow(), this.t);
        this.D = new ma.c(0, getResources().getString(2131887864), getResources().getString(2131887650));
        c3();
    }

    @Override
    @Nullable
    public final String X2() {
        return "I_TR_AntivirusSingleApp";
    }

    @Override
    public final void Y2() {
        g9.c.a(getIntent());
        Z2(11, this.D, this.E, this.C, HttpStatus.HTTP_INTERNAL_SERVER_ERROR);
    }

    @Override
    public final void c() {
        this.f136x.setVisibility(0);
        SpinSingleScanView spinSingleScanView = this.w;
        spinSingleScanView.d.startAnimation(spinSingleScanView.f);
        spinSingleScanView.c.startAnimation(spinSingleScanView.g);
    }

    public final void c3() {
        this.f138z.setVisibility(0);
        this.C.animate().scaleX(1.0f).scaleY(1.0f).setDuration(500L).start();
        this.r.postDelayed(new androidx.appcompat.widget.b(this, 6), 1000L);
    }

    @Override
    public final void h0(@Nullable ScanResult scanResult) {
        SpinSingleScanView spinSingleScanView = this.w;
        spinSingleScanView.f.cancel();
        spinSingleScanView.g.cancel();
        this.f136x.setVisibility(8);
        this.A.setVisibility(0);
        if (scanResult != null) {
            int i = scanResult.f;
            if (i > 6) {
                F.l("Show virus detected, scanResult: " + scanResult, (Exception) null);
                this.B.setText(scanResult.i);
                this.s.start();
                this.f137y.setVisibility(0);
                ml.b.u(getWindow(), this.u);
                tk.b a10 = tk.b.a();
                HashMap hashMap = new HashMap();
                hashMap.put("score", Integer.valueOf(i));
                hashMap.put(CampaignEx.JSON_KEY_PACKAGE_NAME, this.v);
                a10.b("OTH_VirusDetected", hashMap);
                return;
            }
        }
        this.D = new ma.c(0, getResources().getString(2131887864), getResources().getString(2131887650));
        c3();
    }

    public final void onActivityResult(int i, int i10, @Nullable Intent intent) {
        if (i != 1) {
            super/*androidx.fragment.app.FragmentActivity*/.onActivityResult(i, i10, intent);
            return;
        }
        if (ml.b.p(this, this.v)) {
            return;
        }
        this.f137y.setVisibility(8);
        this.s.reverse();
        ml.b.u(getWindow(), this.t);
        this.D = new ma.c(0, getResources().getString(2131887864), getResources().getString(2131887650));
        c3();
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558434);
        Intent intent = getIntent();
        if (intent == null) {
            finish();
            return;
        }
        String stringExtra = intent.getStringExtra("avsa://package_name");
        this.v = stringExtra;
        if (TextUtils.isEmpty(stringExtra)) {
            finish();
            return;
        }
        String str = this.v;
        b6.a aVar = new b6.a(str);
        this.q = aVar;
        aVar.c(ml.b.c(this, str));
        this.r = findViewById(2131362628);
        this.C = (ImageView) findViewById(2131362479);
        this.f137y = findViewById(2131363853);
        this.f138z = findViewById(2131363739);
        this.f136x = findViewById(2131362075);
        this.w = (SpinSingleScanView) findViewById(2131363861);
        this.B = (TextView) findViewById(2131363660);
        ((TextView) findViewById(2131363517)).setText(this.q.d);
        TitleBar findViewById = findViewById(2131363196);
        this.A = findViewById;
        TitleBar.a configure = findViewById.getConfigure();
        configure.a.j = 0;
        configure.e(2131887864);
        configure.g(new t4.a(this, 0));
        configure.a();
        ImageView imageView = (ImageView) findViewById(2131362399);
        SpinSingleScanView spinSingleScanView = this.w;
        b6.a aVar2 = this.q;
        spinSingleScanView.getClass();
        ((i) com.bumptech.glide.c.f(spinSingleScanView)).o(aVar2).D(spinSingleScanView.e);
        f.c(this).o(this.q).D(imageView);
        View findViewById2 = this.f137y.findViewById(2131363511);
        View findViewById3 = this.f137y.findViewById(2131362035);
        findViewById2.setOnClickListener(new i0(this, 2));
        findViewById3.setOnClickListener(new t4.b(this, 0));
        this.t = getResources().getColor(2131099688);
        int color = getResources().getColor(2131099686);
        this.u = color;
        ObjectAnimator ofInt = ObjectAnimator.ofInt(this.r, TtmlNode.ATTR_TTS_BACKGROUND_COLOR, this.t, color);
        this.s = ofInt;
        ofInt.setDuration(500L);
        this.s.setEvaluator(new ArgbEvaluator());
        ml.b.u(getWindow(), this.t);
        if (bundle == null) {
            ((v4.a) W2()).j(this.v);
        }
    }

    @Override
    public final void p1() {
        this.f136x.setVisibility(8);
        this.A.setVisibility(0);
        ((TextView) findViewById(2131363680)).setText(2131887416);
        this.D = new ma.c(0, getString(2131887864), getString(2131887416));
        c3();
    }

    @Override
    public final Context getContext() {
        return this;
    }
}