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

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


package com.dianxinos.optimizer.module.paysecurity;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Message;
import android.text.Html;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import cn.com.opda.android.mainui.MainActivity;
import cn.opda.a.phonoalbumshoushou.R;
import com.baidu.mobads.interfaces.IXAdRequestInfo;
import com.dianxinos.optimizer.module.recommend.data.RelationalRecommendConstants;
import com.dianxinos.optimizer.ui.DxRevealButton;
import com.dianxinos.optimizer.ui.DxTitleBar;
import dxoptimizer.acx;
import dxoptimizer.aww;
import dxoptimizer.awx;
import dxoptimizer.axj;
import dxoptimizer.axr;
import dxoptimizer.bzv;
import dxoptimizer.fsj;
import dxoptimizer.fsk;
import dxoptimizer.fsl;
import dxoptimizer.fuh;
import dxoptimizer.fwu;
import dxoptimizer.fxc;
import dxoptimizer.fxd;
import dxoptimizer.gim;
import dxoptimizer.hti;
import dxoptimizer.hum;
import dxoptimizer.hxa;
import dxoptimizer.hzq;
import dxoptimizer.ibu;
import dxoptimizer.icl;
import dxoptimizer.ico;
import dxoptimizer.icu;
import dxoptimizer.tv;
import org.json.JSONException;
import org.json.JSONObject;

public class PaymentEnterActivity extends axj implements View.OnClickListener, acx, awx {
    private hum a;
    private View b;
    private ImageView c;
    private TextView d;
    private Button e;
    private DxTitleBar f;
    private View g;
    private Button h;
    private TextView j;
    private Bitmap l;
    private Drawable m;
    private ImageButton p;
    private DxRevealButton q;
    private String s;
    private String t;
    private String u;
    private boolean k = false;
    private boolean n = false;
    private boolean o = false;
    private int r = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW;
    private aww v = new aww(this);

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.jadx_deobf_0x00000a22);
        c();
        d();
        e();
        icu.a(this);
        icu.a("ppm", "osh", (Number) 1);
    }

    private void c() {
        this.f = (DxTitleBar) findViewById(R.id.jadx_deobf_0x00001078);
        this.f.a((acx) this);
        this.p = this.f.getSettingButton();
        this.p.setImageResource(R.drawable.jadx_deobf_0x00000475);
        this.p.setVisibility(8);
        this.p.setOnClickListener(this);
        this.b = findViewById(R.id.jadx_deobf_0x00001949);
        this.c = (ImageView) findViewById(R.id.jadx_deobf_0x0000194b);
        this.d = (TextView) findViewById(R.id.jadx_deobf_0x00001947);
        this.e = (Button) findViewById(R.id.jadx_deobf_0x00001950);
        this.d.setOnClickListener(this);
        this.e.setOnClickListener(this);
        ((CheckBox) findViewById(R.id.jadx_deobf_0x00001946)).setOnCheckedChangeListener(new fsj(this));
        TextView textView = (TextView) findViewById(R.id.jadx_deobf_0x0000194d);
        String z = fxc.z(this);
        if (!TextUtils.isEmpty(z)) {
            textView.setText(z);
        }
        this.g = findViewById(R.id.jadx_deobf_0x0000194c);
        this.h = (Button) findViewById(R.id.jadx_deobf_0x0000194e);
        this.j = (TextView) findViewById(R.id.jadx_deobf_0x0000194f);
        this.j.setText(Html.fromHtml(getString(R.string.jadx_deobf_0x0000194f)));
        this.j.setOnClickListener(this);
        this.q = (DxRevealButton) findViewById(R.id.jadx_deobf_0x00001951);
        this.q.setText(R.string.jadx_deobf_0x000027ec);
        this.q.setOnClickListener(this);
        tv.a(findViewById(R.id.jadx_deobf_0x00001948), new ColorDrawable(getResources().getColor(R.color.jadx_deobf_0x00000eee)));
        a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW);
    }

    @SuppressLint({"ShowToast"})
    private void d() {
        boolean a = ico.a(getIntent(), "is_kuang", false);
        this.u = ico.b(getIntent(), "extra_from");
        this.l = fxd.d(this);
        if (this.l != null) {
            this.m = new BitmapDrawable(getResources(), this.l);
            tv.a(this.c, this.m);
        } else {
            this.c.setBackgroundResource(R.drawable.jadx_deobf_0x0000067c);
        }
        this.d.setText(Html.fromHtml(getString(R.string.jadx_deobf_0x000027ea)));
        this.e.setText(R.string.jadx_deobf_0x0000282d);
        this.a = new hum(this);
        this.a.setCancelable(false);
        if (a) {
            this.f.a(getString(R.string.jadx_deobf_0x00002188));
            this.v.sendEmptyMessageDelayed(19, 15000L);
        } else {
            this.f.a(getString(R.string.jadx_deobf_0x000027f1));
        }
        fuh.a(this).d(true);
        bzv.a(this).a(getIntent());
    }

    private void e() {
        hti.a().a(new fsk(this));
    }

    @Override
    public void onClick(View view) {
        if (view == this.d || view == this.j) {
            icl.a(this, getString(R.string.jadx_deobf_0x000027e9), getString(R.string.jadx_deobf_0x000027eb), false);
            return;
        }
        if (view == this.e) {
            this.o = false;
            this.n = true;
            if (!this.k) {
                a(false);
                icu.a(this);
                icu.a("ppm", "oc", (Number) 1);
                a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_ACTION);
            } else {
                g();
            }
            if (ico.a(getIntent(), "type", 0) != 0) {
                icu.a(this);
                icu.a("ppm", "cogbc", (Number) 1);
                return;
            }
            return;
        }
        if (view == this.p) {
            b();
            if (axr.a(this).f()) {
                icu.a(this);
                icu.a("ppm", "plsc", (Number) 1);
                return;
            } else {
                icu.a(this);
                icu.a("ppm", "posc", (Number) 1);
                return;
            }
        }
        if (view == this.q) {
            i();
        } else if (view == this.h) {
            if (!TextUtils.isEmpty(this.s)) {
                icl.a(this, this.t, fxd.a(this.s, this, true), true);
            }
            icu.a(this);
            icu.a("ppm", "ppobc", (Number) 1);
        }
    }

    private void a(int i) {
        switch (i) {
            case RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW:
                ibu.b(this, R.id.jadx_deobf_0x00001078, R.string.jadx_deobf_0x000027f1, this);
                this.b.setVisibility(0);
                this.c.setVisibility(0);
                this.e.setVisibility(0);
                this.g.setVisibility(8);
                this.p.setVisibility(8);
                this.r = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW;
                return;
            case RelationalRecommendConstants.RECOMMEND_TYPE_ICON_ACTION:
                this.p.setVisibility(8);
                this.r = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_ACTION;
                return;
            case RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW_PERMIT:
                ibu.b(this, R.id.jadx_deobf_0x00001078, R.string.jadx_deobf_0x000027f1, this);
                this.b.setVisibility(8);
                this.c.setVisibility(8);
                this.e.setVisibility(8);
                this.g.setVisibility(0);
                this.p.setVisibility(0);
                this.q.setVisibility(0);
                this.q.setText(R.string.jadx_deobf_0x000027ec);
                String r = fxc.r(this);
                if (!TextUtils.isEmpty(r)) {
                    try {
                        JSONObject jSONObject = new JSONObject(r);
                        boolean z = jSONObject.optBoolean(IXAdRequestInfo.SCREEN_WIDTH, false) && jSONObject.optBoolean("dsw", false);
                        String string = jSONObject.getString(RelationalRecommendConstants.RECOM_ELEMENT_TITLE);
                        String string2 = jSONObject.getString("url");
                        String string3 = jSONObject.getString("url_title");
                        if (z) {
                            this.h.setVisibility(0);
                            icu.a(this);
                            icu.a("ppm", "ppobs", (Number) 1);
                            this.h.setText(string);
                            this.h.setOnClickListener(this);
                            this.s = string2;
                            this.t = string3;
                        } else {
                            this.h.setVisibility(8);
                        }
                    } catch (Exception e) {
                    }
                }
                this.r = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW_PERMIT;
                return;
            default:
                return;
        }
    }

    private void f() {
        hti.a().b(new fsl(this));
    }

    @Override
    protected void onActivityResult(int i, int i2, Intent intent) {
        if (i == 10) {
            this.k = fxc.c(this);
            if (!this.k) {
                finish();
            }
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (this.a != null && this.a.isShowing()) {
            this.a.dismiss();
        }
        if (fxc.d(this) == 1) {
            a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW_PERMIT);
            return;
        }
        this.k = fxc.c(this);
        if (("from_recommend".equals(this.u) || "from_welcome".equals(this.u) || "from_payment_claim_alarm".equals(this.u) || "from_account".equals(this.u) || "from_webview".equals(this.u)) && !this.k) {
            if (fxc.d(this) == 1) {
                a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW_PERMIT);
                return;
            }
            this.o = false;
            this.n = true;
            a(true);
            a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_ACTION);
            return;
        }
        if (this.k) {
            if (fxc.d(this) == 1) {
                a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW_PERMIT);
                return;
            } else {
                if (this.n && !this.o) {
                    a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW);
                    g();
                    return;
                }
                return;
            }
        }
        if (this.r == 102) {
            i();
        }
    }

    private void g() {
        this.o = true;
        if (hzq.c(this)) {
            f();
        } else {
            hxa.a(getString(R.string.jadx_deobf_0x000027f2), 0);
        }
    }

    public void b(int i) {
        fxc.a(getApplicationContext(), i);
    }

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

    @Override
    public void onBackPressed() {
        i();
    }

    @Override
    public void finish() {
        fxc.a((Context) this, false);
        super.finish();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.v.removeMessages(11);
        this.v.removeMessages(12);
        this.v.removeMessages(13);
        this.v.removeMessages(15);
        fuh.a(getApplicationContext()).d(false);
    }

    private void h() {
        if (this.a != null && this.a.isShowing()) {
            this.a.dismiss();
        }
    }

    private void a(boolean z) {
        Intent intent = new Intent(this, (Class<?>) CheckUnofficialActivity.class);
        if (z) {
            a(intent, 10);
        } else {
            b(intent);
        }
    }

    public void a(long j) {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("ctime", j);
        } catch (JSONException e) {
            e.printStackTrace();
        }
        icu.a(this);
        icu.a("orct", jSONObject);
    }

    public void b() {
        if (fwu.c(this) != null) {
            try {
                gim.a(this, null, BitmapFactory.decodeResource(getResources(), R.drawable.jadx_deobf_0x0000067d), fwu.d(this), "https://mshoujiweishi.baidu.com/?from=sharefrom855", getString(R.string.app_name), axr.a(this).f() ? "ppsl" : "ppso", getString(R.string.jadx_deobf_0x000027e8));
                icu.a("pp_sc", "pp_oc", (Number) 1);
            } catch (Throwable th) {
            }
        }
    }

    @Override
    public void handleMessage(Message message) {
        if (!isFinishing()) {
            switch (message.what) {
                case 11:
                    if (this.a != null && !this.a.isShowing()) {
                        this.a.show();
                        this.a.a(getString(R.string.jadx_deobf_0x000027ed));
                        return;
                    }
                    return;
                case 12:
                    h();
                    a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW_PERMIT);
                    icu.a(this);
                    icu.a("ppm", IXAdRequestInfo.OS, (Number) 1);
                    hxa.a(getString(R.string.jadx_deobf_0x000027ee), 0);
                    icu.a(this);
                    icu.a("ppm", "ocs", (Number) 1);
                    bzv.a(this).b(getIntent());
                    return;
                case 13:
                    if (this.a != null && this.a.isShowing()) {
                        this.a.dismiss();
                        a(RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW);
                        hxa.a(getString(R.string.jadx_deobf_0x000027ef), 0);
                        return;
                    }
                    return;
                case 14:
                case 18:
                default:
                    return;
                case 15:
                    this.m = new BitmapDrawable(getResources(), this.l);
                    tv.a(this.c, this.m);
                    return;
                case 16:
                    h();
                    hxa.a(getString(R.string.jadx_deobf_0x000027f0), 0);
                    return;
                case 17:
                    h();
                    hxa.a(getString(R.string.jadx_deobf_0x000027ef), 0);
                    return;
                case 19:
                    this.f.a(getString(R.string.jadx_deobf_0x000027f1));
                    return;
            }
        }
    }

    private void i() {
        finish();
        if ("from_notification".equals(this.u)) {
            switch (ico.a(getIntent(), "type", 0)) {
                case 1:
                    b(new Intent(this, (Class<?>) PaySecurityActivity.class));
                    return;
                case 2:
                    b(new Intent(this, (Class<?>) MainActivity.class));
                    return;
                case 3:
                default:
                    return;
            }
        }
        if ("from_payment_claim_alarm".equals(this.u)) {
            b(new Intent(this, (Class<?>) MainActivity.class));
        }
    }
}