1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| private void aCv() { SettingManager.bmC().m16156rl(""); SettingManager.bmC().m16124tV(-1); RSA.init(); aBB(); Variables.account = this.fgV.getText().toString().trim(); Variables.password = this.fgU.getText().toString().trim(); if (Variables.account == null || Variables.account.length() == 0) { Toast.makeText(getActivity(), RenrenApplication.getContext().getResources().getString(C4591R.C4595string.v5_0_1_guide_register_account_no_null), 1).show(); } else if (Variables.password == null || Variables.password.length() == 0) { Toast.makeText(getActivity(), RenrenApplication.getContext().getResources().getString(C4591R.C4595string.v5_0_1_guide_register_password_no_null), 1).show(); } else if (Methods.m13910tM(Variables.account)) { Methods.showToast((CharSequence) getResources().getString(C4591R.C4595string.v5_0_1_guide_register_not_have_china), false); } else if (Methods.m13910tM(Variables.password)) { Methods.showToast((CharSequence) getResources().getString(C4591R.C4595string.v5_0_1_guide_register_pwd_have_china), false); } else { deY = RSA.bNv(); this.f14991n = RSA.bNx(); this.f14990e = RSA.bNw(); if (deY != null) { try { Variables.password = RSA.m10340P(Variables.password, this.f14991n, this.f14990e); RSA.kJi = 1; } catch (Exception e) { e.printStackTrace(); } } else { Variables.password = Md5.toMD5(Variables.password); RSA.kJi = 2; } if (Variables.account == null || Variables.account.length() <= 0 || Variables.password == null || Variables.password.length() <= 0) { return; } if (this.fha == null) { try { this.fha = new Dialog(getActivity()); this.fha.setContentView(C4591R.layout.login_dialog); ((ImageView) this.fha.findViewById(C4591R.C4593id.image)).startAnimation(AnimationUtils.loadAnimation(getActivity(), C4591R.anim.login_dialog_scale)); } catch (Exception unused) { } } this.fha.show(); if (RSA.kJi != 1) { deY = null; } C12919ServiceProvider.m_RSA_login(Variables.account, Variables.password, 1, "", deY, getActivity(), this.dfg); } }
|