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

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


package dxoptimizer;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import cn.opda.a.phonoalbumshoushou.R;
import com.dianxinos.optimizer.module.feedback.FeedbackActivity;
import com.dianxinos.optimizer.module.mms.ui.ConversationList;
import com.dianxinos.optimizer.module.mms.ui.SettingActivity;
import com.dianxinos.optimizer.module.mms.ui.view.MmsPreference;
import com.dianxinos.optimizer.module.recommend.data.RelationalRecommendConstants;
import com.dianxinos.optimizer.web.WebBrowserActivity;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class evo extends abr implements View.OnClickListener, ewk {
    private MmsPreference af;
    private MmsPreference ag;
    private MmsPreference ah;
    private MmsPreference ai;
    private MmsPreference aj;
    private MmsPreference ak;
    private MmsPreference al;
    private MmsPreference am;
    private Context an;
    private final int ad = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW;
    private final int ae = RelationalRecommendConstants.RECOMMEND_TYPE_ICON_ACTION;
    private Dialog ao = null;

    @Override
    public View a(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        this.ac = layoutInflater.inflate(R.layout.jadx_deobf_0x0000097a, viewGroup, false);
        return this.ac;
    }

    @Override
    public void a(View view, Bundle bundle) {
        super.a(view, bundle);
        this.an = getActivity().getApplicationContext();
        Q();
    }

    @Override
    public void a(int i, int i2, Intent intent) {
        if (i == 102) {
            getActivity();
            if (i2 == -1) {
                U();
                return;
            }
            return;
        }
        if (i == 101) {
            getActivity();
            if (i2 == -1 || efq.a(this.an)) {
                T();
                a(this.an);
                exu.bi(this.an);
                return;
            }
            exu.bj(this.an);
        }
    }

    private void P() {
        if (Build.VERSION.SDK_INT >= 19 && !hzl.d()) {
            if (hzl.a(this.an)) {
                this.af.setChecked(true);
                bbl.a(this.an).m(true);
            } else {
                bbl.a(this.an).m(false);
                this.af.setChecked(false);
            }
        } else {
            this.af.setChecked(bbl.a(this.an).t());
        }
        this.ag.setChecked(eys.a(this.an));
        this.ai.setChecked(eys.f(this.an));
        this.aj.setChecked(eys.g(this.an) == etr.c);
        if (this.af.b()) {
            if (hzl.c()) {
                this.ag.setVisibility(8);
            } else {
                this.ag.setVisibility(0);
            }
            this.al.setVisibility(0);
            return;
        }
        this.ag.setVisibility(8);
        this.al.setVisibility(8);
    }

    @Override
    public void k() {
        super.k();
        if (this.ao != null) {
            this.ao.dismiss();
            this.ao = null;
        }
    }

    @Override
    public void j() {
        super.j();
        ewu.a(this.an).a();
        P();
    }

    private void Q() {
        this.af = (MmsPreference) c(R.id.jadx_deobf_0x00001699);
        this.ag = (MmsPreference) c(R.id.jadx_deobf_0x0000169a);
        this.ah = (MmsPreference) c(R.id.jadx_deobf_0x0000169d);
        this.ai = (MmsPreference) c(R.id.jadx_deobf_0x0000169c);
        this.aj = (MmsPreference) c(R.id.jadx_deobf_0x0000169b);
        if (hyp.c()) {
            this.aj.setName(c().getString(R.string.jadx_deobf_0x0000169b));
        } else {
            this.aj.setName(c().getString(R.string.jadx_deobf_0x00002548));
        }
        this.ak = (MmsPreference) c(R.id.jadx_deobf_0x0000169e);
        this.al = (MmsPreference) c(R.id.jadx_deobf_0x0000169f);
        this.am = (MmsPreference) c(R.id.jadx_deobf_0x000016a0);
        this.af.setOnPrefenceChangeListener(this);
        this.ag.setOnPrefenceChangeListener(this);
        if (hzl.c()) {
            this.ag.setVisibility(8);
        }
        this.ai.setOnPrefenceChangeListener(this);
        this.aj.setOnPrefenceChangeListener(this);
        this.af.setOnClickListener(this);
        this.ah.setOnClickListener(this);
        this.ak.setOnClickListener(this);
        this.al.setOnClickListener(this);
        this.am.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        if (view == this.af) {
            R();
            return;
        }
        if (view == this.ah) {
            iaw.a(this.an, this.an.getString(R.string.jadx_deobf_0x000024f4), R.drawable.mms_icon, ConversationList.class.getName());
            exu.aK(this.an);
            return;
        }
        if (view == this.ak) {
            b(new Intent(this.an, (Class<?>) FeedbackActivity.class));
            exu.u(this.an);
        } else if (view == this.al) {
            ((SettingActivity) getActivity()).h();
        } else if (view == this.am) {
            Intent intent = new Intent(this.an, (Class<?>) WebBrowserActivity.class);
            intent.putExtra("extra_url", "https://mshoujiweishi.baidu.com/appfaq/inbox");
            intent.putExtra("extra_title", this.an.getResources().getString(R.string.jadx_deobf_0x000016a0));
            b(intent);
        }
    }

    @Override
    public void a(MmsPreference mmsPreference, Object obj) {
        if (mmsPreference == this.ag) {
            boolean booleanValue = ((Boolean) obj).booleanValue();
            eys.a(this.an, booleanValue);
            if (booleanValue) {
                ewu.a(this.an).f();
                return;
            } else {
                ewu.a(this.an).g();
                eyt.a(this.an).f(false);
                return;
            }
        }
        if (mmsPreference == this.ai) {
            eys.d(this.an, ((Boolean) obj).booleanValue());
        } else if (mmsPreference == this.aj) {
            eys.e(this.an, true);
            if (((Boolean) obj).booleanValue()) {
                eys.a(this.an, etr.c);
            } else {
                eys.a(this.an, etr.b);
            }
            if (!eyt.a(this.an).s()) {
                eyt.a(this.an).j(true);
            }
            getActivity().finish();
            a(new Intent(this.an, (Class<?>) SettingActivity.class));
        }
    }

    private void R() {
        if (this.af.b()) {
            if (Build.VERSION.SDK_INT >= 19 && !hzl.d()) {
                S();
                return;
            }
            ewf ewfVar = new ewf(this.aa);
            ewfVar.setTitle(R.string.jadx_deobf_0x00002932);
            ewfVar.a(R.drawable.jadx_deobf_0x000005a8, R.dimen.jadx_deobf_0x00000c6c, R.dimen.jadx_deobf_0x00000c69);
            ewfVar.a(a(R.string.jadx_deobf_0x00002bb9));
            ewfVar.a(R.string.jadx_deobf_0x00002200, new evp(this));
            ewfVar.b(R.string.jadx_deobf_0x000021c0, null);
            ewfVar.show();
            return;
        }
        if (Build.VERSION.SDK_INT >= 19 && !hzl.d()) {
            if (!efq.a(this.aa)) {
                a(efq.b(this.aa), RelationalRecommendConstants.RECOMMEND_TYPE_ICON_WEBVIEW);
            }
        } else {
            T();
            a(this.an);
        }
    }

    private void a(Context context) {
        if (bzv.a(this.aa).d(this.aa.getIntent())) {
            bzv a = bzv.a(context);
            a.b(a.a(19));
        }
    }

    private void S() {
        List<ResolveInfo> queryIntentActivities;
        PackageManager a = ibk.a(this.aa);
        if (a != null) {
            Intent intent = new Intent("android.provider.Telephony.WAP_PUSH_DELIVER");
            intent.setDataAndType(null, "application/vnd.wap.mms-message");
            List<ResolveInfo> queryBroadcastReceivers = a.queryBroadcastReceivers(intent, 0);
            if (queryBroadcastReceivers != null && !queryBroadcastReceivers.isEmpty() && (queryIntentActivities = a.queryIntentActivities(new Intent("android.intent.action.SENDTO", Uri.fromParts("smsto", "", null)), 0)) != null && !queryIntentActivities.isEmpty()) {
                ArrayList arrayList = new ArrayList();
                ArrayList arrayList2 = new ArrayList();
                for (ResolveInfo resolveInfo : queryBroadcastReceivers) {
                    Iterator<ResolveInfo> it = queryIntentActivities.iterator();
                    while (true) {
                        if (it.hasNext()) {
                            ResolveInfo next = it.next();
                            String str = resolveInfo.activityInfo.packageName;
                            if (!arrayList2.contains(str) && str.equals(next.activityInfo.packageName)) {
                                arrayList.add(resolveInfo);
                                arrayList2.add(str);
                                break;
                            }
                        }
                    }
                }
                if (arrayList != null && !arrayList.isEmpty()) {
                    int size = arrayList.size();
                    CharSequence[] charSequenceArr = new CharSequence[size];
                    Drawable[] drawableArr = new Drawable[size];
                    for (int i = 0; i < size; i++) {
                        drawableArr[i] = ((ResolveInfo) arrayList.get(i)).loadIcon(a);
                        charSequenceArr[i] = ((ResolveInfo) arrayList.get(i)).loadLabel(a);
                    }
                    ewl ewlVar = new ewl(this.aa);
                    ewlVar.a(R.drawable.jadx_deobf_0x000005a8, R.dimen.jadx_deobf_0x00000c6c, R.dimen.jadx_deobf_0x00000c69);
                    ewlVar.a(false);
                    ewlVar.setTitle(R.string.jadx_deobf_0x0000253c);
                    ewlVar.a(charSequenceArr, drawableArr);
                    ewlVar.a(new evq(this, arrayList));
                    ewlVar.b();
                }
            }
        }
    }

    private void T() {
        this.af.setChecked(true);
        if (!hzl.c()) {
            this.ag.setVisibility(0);
            this.al.setVisibility(0);
            bbl.a(this.an).m(true);
            ewu.a(this.an).d();
            eyt.a(this.an).c(false);
            eyt.a(this.an).d(false);
            if (eys.a(this.an)) {
                ewu.a(this.an).f();
            }
        }
    }

    public void U() {
        this.af.setChecked(false);
        if (!hzl.c()) {
            this.ag.setVisibility(8);
            this.al.setVisibility(8);
            bbl.a(this.an).m(false);
            ewu.a(this.an).e();
            eyt.a(this.an).c(false);
            eyt.a(this.an).d(false);
        }
    }
}