| | |
| | | this.nullDataUpdateUi(); |
| | | } |
| | | |
| | | /** |
| | | * 刷新【已恢复】信息数量总数 |
| | | */ |
| | | private void refreshRecoverCount() { |
| | | HdlThreadLogic.runMainThread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | TextView textView = _mActivity.findViewById(R.id.message_tab_recover_title_tv); |
| | | if (textView != null) { |
| | | textView.setText(getText(R.string.message_recover)); |
| | | if (mList.size() > 0) { |
| | | String s = getText(R.string.message_recover) + "(" + mList.size() + ")"; |
| | | textView.setText(s); |
| | | } |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) |
| | | public void onEventMessage(BaseEventBus eventBus) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 刷新【已恢复】信息数量总数 |
| | | */ |
| | | private void refreshRecoverCount() { |
| | | HdlThreadLogic.runMainThread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | TextView textView = _mActivity.findViewById(R.id.message_tab_recover_title_tv); |
| | | if (textView != null) { |
| | | textView.setText(getText(R.string.message_recover)); |
| | | if (mList.size() > 0) { |
| | | String s = getText(R.string.message_recover) + "(" + mList.size() + ")"; |
| | | textView.setText(s); |
| | | } |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * 没有电站列表的样式 |
| | | */ |
| | | private void nullDataUpdateUi() { |
| | |
| | | viewBinding.nullDataIc.nullDataGifAnimationIv, |
| | | viewBinding.nullDataIc.nullDataTv, getString(R.string.message_alarm_data_null), mList.size() > 0); |
| | | } |
| | | |
| | | } |