From 87cd5df70918e6ba1af849c5f026d3719bfdb1ac Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 09 四月 2025 09:06:29 +0800
Subject: [PATCH] Merge branch '1.5.2' into dev

---
 app/src/main/java/com/hdl/photovoltaic/ui/message/MessageInfoActivity.java |   27 +++++++++++----------------
 1 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/message/MessageInfoActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/message/MessageInfoActivity.java
index 60e385e..c4c25a6 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/message/MessageInfoActivity.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/message/MessageInfoActivity.java
@@ -24,6 +24,7 @@
 import com.hdl.photovoltaic.ui.bean.MessageBean;
 import com.hdl.photovoltaic.utils.TimeUtils;
 import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus;
+import com.jaeger.library.StatusBarUtil;
 
 import org.greenrobot.eventbus.EventBus;
 
@@ -45,8 +46,8 @@
 
     @Override
     public void onBindView(Bundle savedInstanceState) {
-        setNotificationBarBackgroundColor(CustomColor.white);
-        setStatusBarTextColor();
+       setStatusBarTranslucent();
+        getWindow().setNavigationBarColor(getColor(R.color.text_FF000000));
         try {
             String json = getIntent().getStringExtra("messageBean");
             mMessageBean = new Gson().fromJson(json, MessageBean.class);
@@ -113,7 +114,7 @@
 
     private void initEvent() {
         //鍚庨��鐨勪簨浠�
-        viewBinding.toolbarTopIn.topBackLl.setOnClickListener(new View.OnClickListener() {
+        viewBinding.toolbarTopRl.topBackLl.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 if (mMessageBean == null) {
@@ -205,14 +206,8 @@
 
     private void initView() {
 
-        viewBinding.toolbarTopIn.topTitleTv.setText(R.string.message_alarm_info);
-        viewBinding.toolbarTopIn.topBackLl.setVisibility(View.VISIBLE);
-
-        if (!UserConfigManage.getInstance().isBAccount()) {
-            viewBinding.messageInfoBackTv.setTextColor(getColor(R.color.text_38C494));
-            viewBinding.messageInfoBackTv.setBackground(AppCompatResources.getDrawable(_mActivity, R.drawable.fillet_line_38c494));
-            viewBinding.messageInfoSolveTv.setBackground(AppCompatResources.getDrawable(_mActivity, R.drawable.checked_38c494));
-        }
+        viewBinding.toolbarTopRl.topTitleTv.setText(R.string.message_alarm_info);
+        viewBinding.toolbarTopRl.topBackLl.setVisibility(View.VISIBLE);
 
         viewBinding.messageInfoAlarmContentIn.leftTitleTv.setText(R.string.messagealarm_details_content);
         viewBinding.messageInfoAlarmDeviceIn.leftTitleTv.setText(R.string.messagealarm_details_device);
@@ -244,18 +239,18 @@
      */
     private void stateStyle(TextView textView) {
         String type = "";//FAULT:鏁呴殰,WARN:鍛婅,EVENT:浜嬩欢
-        Drawable drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.alarm_ffb300);
+        Drawable drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.device_satte_ffb300);
         if (mMessageBean.getType().equals(MessageAlarmStateType.fault)) {
             type = _mActivity.getString(R.string.my_power_station_malfunction);
-            drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.alarm_e34343);
+            drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.device_state_fff55252);
         } else if (mMessageBean.getType().equals(MessageAlarmStateType.warn)) {
             type = _mActivity.getString(R.string.message_alarm);
-            drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.alarm_ffb300);
+            drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.device_satte_ffb300);
         } else if (mMessageBean.getType().equals(MessageAlarmStateType.event)) {
             type = _mActivity.getString(R.string.loading_title_tip);
-            drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.state_b9b9b9);
+            drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.device_state_ffb9b9b9);
         }
-        textView.setText(type);
+//        textView.setText(type);
         textView.setBackground(drawable);
     }
 

--
Gitblit v1.8.0