From f50e8e60e9da99e4f69d8ab76810dc7e5fb448bc Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 02 十二月 2024 10:29:09 +0800 Subject: [PATCH] 2024年12月02日10:29:05 --- app/src/main/java/com/hdl/photovoltaic/ui/newC/MessageCenterList.java | 14 ++++---------- 1 files changed, 4 insertions(+), 10 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..cf54d91 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,9 +326,7 @@ } private void initView() { - viewBinding.toolbarTopMessageCenterListRl.getRoot().setBackgroundColor(getColor(R.color.text_FFFFFFFF)); viewBinding.toolbarTopMessageCenterListRl.topBackLl.setVisibility(View.VISIBLE); - viewBinding.toolbarTopMessageCenterListRl.topLeftIv.setImageResource(R.drawable.back_c); viewBinding.toolbarTopMessageCenterListRl.topTitleTv.setText(R.string.set_message_center); viewBinding.toolbarTopMessageCenterListRl.topMoreBtn.setVisibility(View.VISIBLE); viewBinding.toolbarTopMessageCenterListRl.topMoreIv.setImageResource(R.drawable.clearall); @@ -341,7 +340,7 @@ viewBinding.messageContentRl.setLayoutManager(mLayoutManager); viewBinding.messageContentRl.setAdapter(messageCenterListAdapter); messageCenterListAdapter.setList(mList); - this.nullDataUpdateUi(); +// this.nullDataUpdateUi(); } private void initData() { @@ -349,7 +348,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 +356,7 @@ mTypeFilterValue = "FAULT"; mTimeTypeFilterKye = FilterType.all; mTimeTypeFilterValue = FilterType.all; + viewBinding.allGradeTitleTv.setText(getString(R.string.alarm_all_grade_malfunction)); } } } catch (Exception ignored) { @@ -496,16 +496,10 @@ @Override public void run() { if (typeClick) { - viewBinding.messageBottomAlarmDeviceTitleTv.setTextColor(getColor(R.color.text_191919)); viewBinding.messageBottomAlarmDeviceLineV.setVisibility(View.VISIBLE); - viewBinding.messageBottomAlarmRecordTitleTv.setTextColor(getColor(R.color.text_B2B2B2)); viewBinding.messageBottomAlarmRecordLineV.setVisibility(View.GONE); - - } 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); } -- Gitblit v1.8.0