| | |
| | | private int currentPage = 0; // 当前页码 |
| | | private int total = 0; // 最后页码 |
| | | |
| | | private int totalCount = 0;//消息数量总数 |
| | | |
| | | private boolean isLoadingMore = false; // 标记正在加载更多数据 |
| | | |
| | | private final List<MessageBean> mList = new ArrayList<>(); |
| | |
| | | messageRecoverAdapter.setList(mList); |
| | | messageRecoverAdapter.notifyDataSetChanged(); |
| | | } |
| | | |
| | | //刷新【已恢复】信息数量总数 |
| | | refreshRecoverCount(); |
| | | //显示没数据Ui样式 |
| | |
| | | if (eventBus.getType().equals(MessageStateType.processed)) { |
| | | //消息详情回调 |
| | | initData(); |
| | | ++totalCount; |
| | | updateListData(); |
| | | |
| | | } |
| | |
| | | if (messageListClass != null) { |
| | | total = (int) messageListClass.getTotalPage(); |
| | | currentPage = (int) messageListClass.getPageNo(); |
| | | totalCount = (int) messageListClass.getTotalCount(); |
| | | updateListData(); |
| | | } |
| | | isLoadingMore = false; |
| | |
| | | if (textView != null) { |
| | | textView.setText(getText(R.string.message_recover)); |
| | | if (mList.size() > 0) { |
| | | String s = getText(R.string.message_recover) + "(" + mList.size() + ")"; |
| | | String s = getText(R.string.message_recover) + "(" + totalCount + ")"; |
| | | textView.setText(s); |
| | | } |
| | | } |