| | |
| | | package com.hdl.photovoltaic.ui.message; |
| | | |
| | | |
| | | import android.annotation.SuppressLint; |
| | | import android.graphics.drawable.Drawable; |
| | | import android.os.Bundle; |
| | | import android.view.View; |
| | |
| | | type = _mActivity.getString(R.string.message_alarm); |
| | | drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.alarm_ffb300); |
| | | } else if (mMessageBean.getType().equals(MessageAlarmStateType.event)) { |
| | | type = _mActivity.getString(R.string.event); |
| | | drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.alarm_ffb300); |
| | | type = _mActivity.getString(R.string.loading_title_tip); |
| | | drawable = AppCompatResources.getDrawable(_mActivity, R.drawable.state_b9b9b9); |
| | | } |
| | | viewBinding.messageInfoAlarmStateTv.setText(type); |
| | | viewBinding.messageInfoAlarmStateTv.setBackground(drawable); |
| | |
| | | sendEventBus(); |
| | | } |
| | | finish(); |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |