From f1b6f9eeb0c65be3be02eba1296bf69067af6d9b Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 25 九月 2024 14:51:59 +0800 Subject: [PATCH] 2024年09月25日14:51:50 --- app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java | 5 +++-- 1 files changed, 3 insertions(+), 2 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..0476fca 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 @@ -325,7 +325,7 @@ } private void initView() { - viewBinding.toolbarTopMessageCenterListRl.getRoot().setBackgroundColor(getColor(R.color.text_FFFFFFFF)); + viewBinding.toolbarTopMessageCenterListRl.getRoot().setBackgroundColor(getColor(R.color.text_FFECECEC)); viewBinding.toolbarTopMessageCenterListRl.topBackLl.setVisibility(View.VISIBLE); viewBinding.toolbarTopMessageCenterListRl.topLeftIv.setImageResource(R.drawable.back_c); viewBinding.toolbarTopMessageCenterListRl.topTitleTv.setText(R.string.set_message_center); @@ -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