From 8ae36b4ff529f450faa73030af4b3b8ebe42a815 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期五, 13 九月 2024 20:51:26 +0800
Subject: [PATCH] 2024年09月13日20:50:36

---
 app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java b/app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java
index bce1e08..5235162 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java
@@ -349,7 +349,7 @@
             Intent intent = getIntent();
             if (intent != null) {
                 String isShowFault = intent.getStringExtra("isShowFault");
-                if (isShowFault.equals("true")) {
+                if (isShowFault != null && isShowFault.equals("true")) {
                     //榛樿鏁呴殰鍏ㄩ儴
                     mDeviceTypeFilterKye = FilterType.all;
                     mDeviceTypeFilterValue = FilterType.all;
@@ -357,6 +357,7 @@
                     mTypeFilterValue = "FAULT";
                     mTimeTypeFilterKye = FilterType.all;
                     mTimeTypeFilterValue = FilterType.all;
+                    viewBinding.allGradeTitleTv.setText(getString(R.string.alarm_all_grade_malfunction));
                 }
             }
         } catch (Exception ignored) {

--
Gitblit v1.8.0