| | |
| | | import com.hdl.photovoltaic.enums.MessageFunctionTabSwitch; |
| | | import com.hdl.photovoltaic.enums.MessageStateType; |
| | | import com.hdl.photovoltaic.listener.CloudCallBeak; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlMessageLogic; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | import com.hdl.photovoltaic.ui.adapter.MessageAdapter; |
| | |
| | | this.messageNascentAdapter.setList(mList); |
| | | this.messageNascentAdapter.notifyDataSetChanged(); |
| | | } |
| | | |
| | | if (mList.size() > 0) { |
| | | BaseEventBus baseEventBus = new BaseEventBus(); |
| | | baseEventBus.setTopic(ConstantManage.message_count); |
| | | baseEventBus.setType(MessageStateType.untreated); |
| | | baseEventBus.setData(mList.size()); |
| | | EventBus.getDefault().post(baseEventBus); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) |