| | |
| | | |
| | | @Override |
| | | public void onBindView(Bundle savedInstanceState) { |
| | | setStatusBarTranslucent(); |
| | | setStatusBarTranslucent(); |
| | | getWindow().setNavigationBarColor(getColor(R.color.text_FF000000)); |
| | | //初始化 |
| | | initView(); |
| | |
| | | */ |
| | | private boolean isEditTextPassword(String oldPsw, String newPsw, String affirmPsw) { |
| | | if (newPsw.length() < 6 || affirmPsw.length() < 6) { |
| | | HdlThreadLogic.tipFlashingBox(_mActivity, true, getString(R.string.home_login_least6), -1); |
| | | HdlThreadLogic.tipFlashingBox(_mActivity, false, getString(R.string.home_login_least6), -1); |
| | | return false; |
| | | } |
| | | if (!newPsw.equals(affirmPsw)) { |
| | | //新密码和确认密码不一样 |
| | | HdlThreadLogic.tipFlashingBox(_mActivity, true, getString(R.string.home_login_input_unlike_psw), -1); |
| | | HdlThreadLogic.tipFlashingBox(_mActivity, false, getString(R.string.home_login_input_unlike_psw), -1); |
| | | return false; |
| | | } |
| | | if (oldPsw.equals(newPsw)) { |
| | | HdlThreadLogic.tipFlashingBox(_mActivity, true, getString(R.string.home_old_password_not_new_password), -1); |
| | | HdlThreadLogic.tipFlashingBox(_mActivity, false, getString(R.string.home_old_password_not_new_password), -1); |
| | | return false; |
| | | } |
| | | return true; |