| | |
| | | |
| | | @Override |
| | | public void onBindView(Bundle savedInstanceState) { |
| | | setStatusBarTranslucent(); |
| | | //初始化 |
| | | initView(); |
| | | //初始化界面监听器 |
| | |
| | | verification_code = viewBinding.changeMailVerificationEt.getText().toString(); |
| | | } |
| | | if (UserConfigManage.getInstance().isBAccount()) { |
| | | HdlAccountLogic.getInstance().changeBPassword(isPhoneType, account, psw, verification_code, new CloudCallBeak<Boolean>() { |
| | | HdlAccountLogic.getInstance().changePassword_B(isPhoneType, account, psw, verification_code, new CloudCallBeak<Boolean>() { |
| | | @Override |
| | | public void onSuccess(Boolean obj) { |
| | | HdlThreadLogic.runMainThread(new Runnable() { |
| | |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | |
| | | HdlThreadLogic.toast(_mActivity, e); |
| | | } |
| | | }); |
| | | } else { |
| | | HdlAccountLogic.getInstance().changeCPassword(isPhoneType, account, psw, verification_code, new CloudCallBeak<Boolean>() { |
| | | HdlAccountLogic.getInstance().changePassword_C(isPhoneType, account, psw, verification_code, new CloudCallBeak<Boolean>() { |
| | | @Override |
| | | public void onSuccess(Boolean obj) { |
| | | HdlThreadLogic.runMainThread(new Runnable() { |
| | |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | |
| | | HdlThreadLogic.toast(_mActivity, e); |
| | | } |
| | | }); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | |
| | | HdlThreadLogic.toast(_mActivity, e); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | |
| | | HdlThreadLogic.toast(_mActivity, e); |
| | | // hideLoading(); |
| | | } |
| | | }); |
| | |
| | | //手机号 |
| | | viewBinding.changePhoneIc.accountTitleTv.setText(R.string.home_login_phone); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextSize(20); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextColor(getResources().getColor(R.color.text_90000000)); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextColor(getResources().getColor(R.color.text_E6000000)); |
| | | viewBinding.changePhoneIc.lineV.setVisibility(View.VISIBLE); |
| | | |
| | | viewBinding.changeMailRl.accountTitleTv.setText(R.string.home_login_email); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextSize(16); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextColor(getResources().getColor(R.color.text_40000000)); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextColor(getResources().getColor(R.color.text_66000000)); |
| | | viewBinding.changeMailRl.lineV.setVisibility(View.GONE); |
| | | |
| | | //输入手机号 |
| | |
| | | //邮箱 |
| | | viewBinding.changePhoneIc.accountTitleTv.setText(R.string.home_login_phone); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextSize(16); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextColor(getResources().getColor(R.color.text_40000000)); |
| | | viewBinding.changePhoneIc.accountTitleTv.setTextColor(getResources().getColor(R.color.text_66000000)); |
| | | viewBinding.changePhoneIc.lineV.setVisibility(View.GONE); |
| | | |
| | | viewBinding.changeMailRl.accountTitleTv.setText(R.string.home_login_email); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextSize(20); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextColor(getResources().getColor(R.color.text_90000000)); |
| | | viewBinding.changeMailRl.accountTitleTv.setTextColor(getResources().getColor(R.color.text_E6000000)); |
| | | viewBinding.changeMailRl.lineV.setVisibility(View.VISIBLE); |
| | | //输入邮箱 |
| | | viewBinding.changeAccountEt.setInputType(InputType.TYPE_CLASS_TEXT); |