From 15c2fc33ef1023a045a76ae594b3da76a281ea20 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 24 十月 2024 18:29:19 +0800
Subject: [PATCH] 2024年10月24日18:29:11
---
app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 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..89c0804 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
@@ -3,6 +3,7 @@
import android.content.DialogInterface;
import android.content.Intent;
+import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
@@ -325,7 +326,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 +350,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 +358,7 @@
mTypeFilterValue = "FAULT";
mTimeTypeFilterKye = FilterType.all;
mTimeTypeFilterValue = FilterType.all;
+ viewBinding.allGradeTitleTv.setText(getString(R.string.alarm_all_grade_malfunction));
}
}
} catch (Exception ignored) {
@@ -500,13 +502,15 @@
viewBinding.messageBottomAlarmDeviceLineV.setVisibility(View.VISIBLE);
viewBinding.messageBottomAlarmRecordTitleTv.setTextColor(getColor(R.color.text_B2B2B2));
viewBinding.messageBottomAlarmRecordLineV.setVisibility(View.GONE);
-
-
+ viewBinding.messageBottomAlarmDeviceTitleTv.setTypeface(null, Typeface.BOLD);
+ viewBinding.messageBottomAlarmRecordTitleTv.setTypeface(null, Typeface.NORMAL);
} else {
viewBinding.messageBottomAlarmDeviceTitleTv.setTextColor(getColor(R.color.text_B2B2B2));
viewBinding.messageBottomAlarmDeviceLineV.setVisibility(View.GONE);
viewBinding.messageBottomAlarmRecordTitleTv.setTextColor(getColor(R.color.text_191919));
viewBinding.messageBottomAlarmRecordLineV.setVisibility(View.VISIBLE);
+ viewBinding.messageBottomAlarmDeviceTitleTv.setTypeface(null, Typeface.NORMAL);
+ viewBinding.messageBottomAlarmRecordTitleTv.setTypeface(null, Typeface.BOLD);
}
}
--
Gitblit v1.8.0