From ae57b0e8ca15e818e66b4edd4696804d81796327 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 03 一月 2025 09:53:44 +0800
Subject: [PATCH] 2025年01月03日09:53:42

---
 app/src/main/java/com/hdl/photovoltaic/ui/me/MeChangePasswordActivity.java |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/me/MeChangePasswordActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/me/MeChangePasswordActivity.java
index 7f0c976..9af24d5 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/me/MeChangePasswordActivity.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/me/MeChangePasswordActivity.java
@@ -38,8 +38,8 @@
 
     @Override
     public void onBindView(Bundle savedInstanceState) {
-        setNotificationBarBackgroundColor(CustomColor.white);
-        setStatusBarTextColor();
+        setStatusBarTranslucent();
+        getWindow().setNavigationBarColor(getColor(R.color.text_FF000000));
         //鍒濆鍖�
         initView();
         //鍒濆鍖栫晫闈㈢洃鍚櫒
@@ -163,11 +163,8 @@
      * 鍒濆鍖�
      */
     private void initView() {
-        viewBinding.toolbarTopRl.topBarView.setBackgroundColor(getResources().getColor(R.color.text_FFECECEC, null));
         viewBinding.toolbarTopRl.topTitleTv.setText(R.string.home_login_change_password);
-        viewBinding.toolbarTopRl.topTitleTv.setTextColor(getResources().getColor(R.color.text_030D1C, null));
         viewBinding.toolbarTopRl.topBackLl.setVisibility(View.VISIBLE);
-        viewBinding.toolbarTopRl.topLeftIv.setImageResource(R.drawable.back_c);
         viewBinding.meChangePasswordOldIc.mePswTitleTv.setText(R.string.home_login_old_pws);
         viewBinding.meChangePasswordOldIc.mePswEt.setHint(R.string.home_login_input_old_pws);
         viewBinding.meChangePasswordOldIc.lineV.setVisibility(View.GONE);
@@ -190,6 +187,11 @@
         String newPsw = viewBinding.meChangePasswordNewIc.mePswEt.getText().toString();
         String affirmPsw = viewBinding.meChangePasswordAffirmIc.mePswEt.getText().toString();
         boolean isEnabled = oldPsw.length() > 0 && newPsw.length() > 0 && affirmPsw.length() > 0;
+        if (isEnabled) {
+            viewBinding.homeAffirmTv.setTextColor(getColor(R.color.text_E6FFFFFF));
+        } else {
+            viewBinding.homeAffirmTv.setTextColor(getColor(R.color.text_66FFFFFF));
+        }
         viewBinding.homeAffirmTv.setEnabled(isEnabled);
     }
 
@@ -203,16 +205,16 @@
      */
     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;

--
Gitblit v1.8.0