手机管家 v6.0.0版本的 MD5 值为:bf0bca2cb03f766137fe9ecf7383a634
以下内容为反编译后的 bkx.java 源代码,内容仅作参考
package tcs;
import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.View;
import com.tencent.kingkong.database.SQLiteDatabase;
import com.tencent.qqpimsecure.R;
import com.tencent.qqpimsecure.account.MainAccountInfo;
import com.tencent.qqpimsecure.plugin.account.fg.PiAccount;
import java.util.ArrayList;
import meri.pluginsdk.PluginIntent;
import tcs.azr;
import uilib.components.QButton;
import uilib.components.QEditText;
import uilib.components.QTextView;
public class bkx extends bkg implements View.OnClickListener {
private QTextView faN;
private QTextView faO;
private QEditText faP;
private QEditText faQ;
private QButton faR;
private TextWatcher faS;
private uilib.templates.b fap;
public bkx(Activity activity) {
super(activity, R.layout.d_);
this.eXW = 1;
}
@Override
public uilib.frame.b Zl() {
apa apaVar = new apa(this.eXV.gh(R.string.yi), 19, this);
apaVar.setEnabled(false);
ArrayList arrayList = new ArrayList();
arrayList.add(apaVar);
this.fap = new uilib.templates.b(this.mContext, SQLiteDatabase.KeyEmpty, arrayList);
this.fap.b(this);
this.faR = this.fap.d(apaVar);
return this.fap;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (this.eZf == 1 && TextUtils.isEmpty(this.cuC)) {
this.cuC = UU();
}
this.mActivity.getWindow().setSoftInputMode(20);
ahW();
PS();
}
private String UU() {
MainAccountInfo PQ = this.eZc.PQ();
if (PQ == null || PQ.dxY == null) {
return null;
}
return PQ.dxY.dxP;
}
private void ahW() {
this.faS = new TextWatcher() {
@Override
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
@Override
public void afterTextChanged(Editable editable) {
bkx.this.UV();
}
};
this.faN = (QTextView) bjw.b(this, R.id.oq);
this.faP = (QEditText) bjw.b(this, R.id.or);
this.faP.addTextChangedListener(this.faS);
this.faQ = (QEditText) bjw.b(this, R.id.os);
this.faQ.addTextChangedListener(this.faS);
this.faO = (QTextView) bjw.b(this, R.id.ot);
this.faO.getPaint().setFlags(8);
this.faO.setOnClickListener(this);
}
private void PS() {
if (this.eZe != null) {
String str = this.cuC;
String string = this.eZe.getString("title");
String string2 = this.eZe.getString(azr.b.ejV);
if (TextUtils.isEmpty(string)) {
string = this.eXV.gh(R.string.a1n);
}
if (TextUtils.isEmpty(string2)) {
string2 = this.eXV.gh(R.string.a1o);
}
if (!TextUtils.isEmpty(str)) {
string = this.eXV.gh(R.string.a1p);
string2 = this.eXV.gh(R.string.a1q) + bkm.lA(str);
}
if (!TextUtils.isEmpty(string)) {
this.fap.nK(string);
}
if (!TextUtils.isEmpty(string2)) {
this.faN.setText(string2);
}
this.faP.setText(str);
if (!TextUtils.isEmpty(str)) {
this.faP.setVisibility(8);
this.faQ.requestFocus();
} else {
this.faP.setVisibility(0);
this.faP.requestFocus();
}
if (this.eZg == 7) {
this.fap.p(this.eXV.gi(R.drawable.cz));
this.fap.fd(true);
this.fap.c(this);
}
}
}
public void UV() {
if (this.faP.getVisibility() == 0 && TextUtils.isEmpty(this.faP.getText())) {
this.faR.setEnabled(false);
} else if (TextUtils.isEmpty(this.faQ.getText())) {
this.faR.setEnabled(false);
} else {
this.faR.setEnabled(true);
}
}
@Override
public void onClick(View view) {
if (view == this.faO) {
bkm.lx("http://aq.qq.com/lost_pwd?lang=zh_cn&login_type=normal?source_id=2411");
return;
}
if (view == this.faR) {
String obj = this.faP.getText().toString();
String obj2 = this.faQ.getText().toString();
if (TextUtils.isEmpty(obj)) {
uilib.components.g.d(this.mContext, R.string.a1l);
return;
} else if (TextUtils.isEmpty(obj2)) {
uilib.components.g.d(this.mContext, R.string.a1m);
return;
} else {
aH(obj, obj2);
return;
}
}
if (view == this.fap.rO()) {
PiAccount.Vt().a(new PluginIntent(8060931), false);
finish();
} else if (view == this.fap.rM()) {
cancel();
ArrayList arrayList = new ArrayList();
arrayList.add(this.eZh);
yz.c(this.eXV.kH(), 261210, 4);
yz.b(this.eXV.kH(), 261212, arrayList, 4);
}
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i == 4) {
ArrayList arrayList = new ArrayList();
arrayList.add(this.eZh);
yz.c(this.eXV.kH(), 261210, 4);
yz.b(this.eXV.kH(), 261212, arrayList, 4);
}
return super.onKeyDown(i, keyEvent);
}
@Override
public void a(int i, String str, int i2, Bitmap bitmap) {
super.a(i, str, i2, bitmap);
if (i == 3) {
this.faQ.setText((CharSequence) null);
this.faQ.requestFocus();
}
oB(i);
}
private void oB(int i) {
if (i == 0) {
ArrayList arrayList = new ArrayList();
arrayList.add(this.eZh);
yz.c(this.eXV.kH(), 260571, 4);
yz.b(this.eXV.kH(), 260579, arrayList, 4);
return;
}
if (i == 1) {
ArrayList arrayList2 = new ArrayList();
arrayList2.add(this.eZh);
yz.c(this.eXV.kH(), 261210, 4);
yz.b(this.eXV.kH(), 261212, arrayList2, 4);
return;
}
ArrayList arrayList3 = new ArrayList();
arrayList3.add(this.eZh);
yz.c(this.eXV.kH(), 260572, 4);
yz.b(this.eXV.kH(), 260580, arrayList3, 4);
ArrayList arrayList4 = new ArrayList();
arrayList4.add(Integer.toString(i));
yz.b(this.eXV.kH(), 261213, arrayList4, 4);
}
}