手机管家 v4.8.2版本的 MD5 值为:d088856dab74371c94855b8b0f117ae3

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


package com.tencent.qqpimsecure.plugin.main.page;

import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.tencent.qqpimsecure.R;
import com.tencent.qqpimsecure.plugin.main.PiMain;
import java.util.ArrayList;
import java.util.List;
import meri.pluginsdk.PluginIntent;
import tcs.acc;
import tcs.agv;
import tcs.aow;
import tcs.apy;
import tcs.ara;
import tcs.arc;
import tcs.bmx;
import tcs.md;
import tcs.to;
import tcs.ve;
import uilib.components.QRoundedPanel;

public class a extends uilib.frame.a {
    private String eHq;
    private uilib.components.f eHr;
    private QRoundedPanel eHs;
    private int eHt;
    private boolean eHu;

    public a(Context context) {
        super(context, R.layout.layout_about);
        this.eHq = "http://m.qq.com/agreement/index_zhcn.jsp?pageNo=1&type=1";
        this.eHs = null;
        this.eHt = 0;
        this.eHu = false;
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        wG();
        String ua = com.tencent.qqpimsecure.service.b.tU().ua();
        if (ua != null && ua.length() > 0) {
            ((TextView) bmx.b(this.dqh, R.id.product_name)).setText(ua);
        }
    }

    private void wG() {
        TextView textView = (TextView) bmx.b(this.dqh, R.id.build_info);
        com.tencent.qqpimsecure.service.i uM = com.tencent.qqpimsecure.service.i.uM();
        textView.setText(String.format(bmx.axW().gh(R.string.build_info_text), uM.uQ(), uM.uN()));
        LinearLayout linearLayout = (LinearLayout) bmx.b(this.dqh, R.id.main_body);
        if (this.eHs != null) {
            linearLayout.removeView(this.eHs);
        }
        this.eHs = new QRoundedPanel(this.mContext);
        this.eHs.setViewList(azy());
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.topMargin = arc.a(this.mContext, 26.0f);
        linearLayout.addView(this.eHs, layoutParams);
    }

    @Override
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        switch (i) {
            case 82:
                if (acc.So() || to.SQ()) {
                    int i2 = this.eHt + 1;
                    this.eHt = i2;
                    if (i2 > 4) {
                        this.eHt = Integer.MIN_VALUE;
                        this.eHu = true;
                        wG();
                        uilib.components.g.B(this.mContext, "用户日志已打开");
                        break;
                    }
                }
                break;
        }
        return super.onKeyDown(i, keyEvent);
    }

    private ArrayList<View> azy() {
        List<aow> azz = azz();
        ArrayList<View> arrayList = new ArrayList<>();
        for (aow aowVar : azz) {
            KeyEvent.Callback b = ara.b(this.mContext, aowVar);
            ((uilib.components.item.e) b).updateView(aowVar);
            arrayList.add(b);
        }
        return arrayList;
    }

    private List<aow> azz() {
        ArrayList arrayList = new ArrayList(3);
        apy apyVar = new apy((Drawable) null, bmx.axW().gh(R.string.check_update_text), "");
        apyVar.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                a.this.azA();
            }
        });
        arrayList.add(apyVar);
        apy apyVar2 = new apy((Drawable) null, bmx.axW().gh(R.string.recommend_friend), "");
        apyVar2.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                PluginIntent pluginIntent = new PluginIntent(agv.b.brE);
                pluginIntent.putExtra(agv.brw, bmx.axW().gh(R.string.recommend_content));
                pluginIntent.putExtra(agv.TITLE, bmx.axW().gh(R.string.recommend_friend));
                PiMain.axy().a(pluginIntent, false);
            }
        });
        arrayList.add(apyVar2);
        apy apyVar3 = new apy((Drawable) null, bmx.axW().gh(R.string.user_protocol), "");
        apyVar3.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                a.this.rI(a.this.eHq);
            }
        });
        arrayList.add(apyVar3);
        apy apyVar4 = new apy((Drawable) null, bmx.axW().gh(R.string.web_site_text), "");
        apyVar4.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                a.this.rI("http://m.qq.com");
            }
        });
        arrayList.add(apyVar4);
        apy apyVar5 = new apy((Drawable) null, bmx.axW().gh(R.string.weibo_text), "");
        apyVar5.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                a.this.rI("http://ti.3g.qq.com/g/s?aid=h&amp;u=qqsecure");
            }
        });
        arrayList.add(apyVar5);
        if (this.eHu) {
            apy apyVar6 = new apy((Drawable) null, bmx.axW().gh(R.string.user_log_text), "");
            apyVar6.a(new uilib.components.item.b() {
                @Override
                public void a(aow aowVar, int i) {
                    PiMain.axy().a(new PluginIntent(ve.g.aBu), false);
                }
            });
            arrayList.add(apyVar6);
            apy apyVar7 = new apy((Drawable) null, bmx.axW().gh(R.string.report_performance_text), "");
            apyVar7.a(new uilib.components.item.b() {
                @Override
                public void a(aow aowVar, int i) {
                    PiMain.axy().a(new PluginIntent(ve.g.dvh), false);
                }
            });
            arrayList.add(apyVar7);
        }
        return arrayList;
    }

    public void azA() {
        Bundle bundle = new Bundle();
        bundle.putInt(meri.pluginsdk.d.bss, md.d.aqz);
        if (PiMain.axy().c(115, bundle, new Bundle()) != 0) {
            uilib.components.g.B(this.mContext, bmx.axW().gh(R.string.check_update_failure));
            return;
        }
        PiMain.axy().axF();
        this.eHr = new uilib.components.f(this.mContext);
        this.eHr.setMessage(bmx.axW().gh(R.string.check_update_ing));
        this.eHr.setOnKeyListener(new DialogInterface.OnKeyListener() {
            @Override
            public boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
                if (i != 4) {
                    return false;
                }
                PiMain.axy().rz(null);
                return true;
            }
        });
        this.eHr.show();
    }

    public void rH(String str) {
        if (this.eHr != null) {
            this.eHr.dismiss();
            this.eHr = null;
        }
        if (str != null) {
            uilib.components.g.B(this.mContext, str);
        }
    }

    public void rI(String str) {
        PluginIntent pluginIntent = new PluginIntent(ve.g.aBA);
        pluginIntent.putExtra("extra_url", str);
        PiMain.axy().a(pluginIntent, false);
    }

    @Override
    public uilib.frame.b Zl() {
        return new uilib.templates.d(this.mContext, bmx.axW().gh(R.string.about_title), null, null);
    }
}