百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443

以下内容为反编译后的 BonusHelperActivity.java 源代码,内容仅作参考


package com.dianxinos.optimizer.module.bonushelper.ui;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.BitmapFactory;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.dianxinos.optimizer.ui.DxTitleBar;
import dxoptimizer.acx;
import dxoptimizer.awp;
import dxoptimizer.diz;
import dxoptimizer.dja;
import dxoptimizer.djr;
import dxoptimizer.djs;
import dxoptimizer.gim;
import dxoptimizer.hib;
import dxoptimizer.icn;
import dxoptimizer.icu;
import dxoptimizer.tv;

public class BonusHelperActivity extends awp implements View.OnClickListener, acx {
    private ViewGroup a;
    private ImageButton b;
    private ImageView c;
    private ImageView d;
    private BonusView e;
    private TextView f;
    private hib g = null;
    private BroadcastReceiver h = new djs(this);

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.jadx_deobf_0x0000088f);
        b();
        c();
    }

    @Override
    protected void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        dja.a(this.g);
    }

    private void b() {
        DxTitleBar dxTitleBar = (DxTitleBar) findViewById(R.id.jadx_deobf_0x00001078);
        dxTitleBar.b(R.string.jadx_deobf_0x000020c7).a((acx) this).a((View.OnClickListener) this);
        this.b = dxTitleBar.getSettingButton();
        tv.a(dxTitleBar, new ColorDrawable(0));
        this.c = (ImageButton) findViewById(R.id.jadx_deobf_0x0000131f);
        this.a = (ViewGroup) findViewById(R.id.jadx_deobf_0x0000131c);
        this.e = (BonusView) findViewById(R.id.jadx_deobf_0x00000891);
        this.d = (ImageView) findViewById(R.id.jadx_deobf_0x00001337);
        this.f = (TextView) findViewById(R.id.jadx_deobf_0x00001320);
        this.d.setOnClickListener(this);
        this.c.setOnClickListener(this);
        this.f.setOnClickListener(this);
    }

    private void c() {
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("com.dianxinos.optimizer.action.APK_INSTALL_BG_F");
        icn.a(this, this.h, intentFilter);
        e();
    }

    @Override
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
        if (diz.a(this) && dja.b(this)) {
            this.e.postDelayed(new djr(this), 200L);
        }
    }

    private void d() {
        boolean b = dja.b(this);
        if (!diz.a(this)) {
            this.a.setVisibility(0);
            this.e.setVisibility(8);
            this.b.setVisibility(8);
        } else {
            if (!b) {
                this.e.setVisibility(0);
                this.a.setVisibility(8);
                this.e.setPermissionGuideViewVisiable(true);
                this.b.setVisibility(0);
                return;
            }
            this.e.setVisibility(0);
            this.a.setVisibility(8);
            this.e.setPermissionGuideViewVisiable(false);
            this.b.setVisibility(0);
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        d();
        this.e.a(this);
        if (this.g != null) {
            e();
            this.g.b();
            this.g = null;
        }
    }

    private void e() {
        if (dja.j(this)) {
            dja.k(this);
            icu.a("bh_cat", "bh_pgs_" + Build.MANUFACTURER.toLowerCase(), (Number) 1);
        }
    }

    @Override
    public void onClick(View view) {
        if (view == this.b) {
            b(new Intent(this, (Class<?>) BonusHelperSettingActivity.class));
            icu.a("bh_cat", "bh_set_c", (Number) 1);
            return;
        }
        if (view == this.c) {
            diz.a((Context) this, true);
            this.a.setVisibility(8);
            this.b.setVisibility(0);
            if (dja.b(this)) {
                this.e.setVisibility(0);
                this.a.setVisibility(8);
                this.e.setPermissionGuideViewVisiable(false);
            } else {
                if (this.g == null) {
                    this.g = dja.c(this);
                }
                dja.a(this, this.g);
            }
            icu.a("bh_cat", "bh_msc", (Number) 1);
            return;
        }
        if (view == this.d) {
            dja.i(this);
            String string = getString(R.string.jadx_deobf_0x000020e1);
            String string2 = getString(R.string.jadx_deobf_0x000020e2);
            try {
                gim.a(this, null, BitmapFactory.decodeResource(getResources(), R.drawable.jadx_deobf_0x00000291), string, "https://mshoujiweishi.baidu.com/?from=sharefrom855", string2, "sks_bh", getString(R.string.jadx_deobf_0x000020c6));
                icu.a("bh_cat", "bh_sh_c", (Number) 1);
                return;
            } catch (Throwable th) {
                return;
            }
        }
        if (view == this.f) {
            if (dja.b(this)) {
                dja.g(this);
                return;
            }
            if (this.g == null) {
                this.g = dja.c(this);
            }
            dja.a(this, this.g);
        }
    }

    @Override
    public void l_() {
        finish();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unregisterReceiver(this.h);
    }
}