mac
2024-01-30 3aa86eda8f416bec308d065689d39c847d2d9cc7
app/src/main/java/com/hdl/photovoltaic/ui/message/RecoverMessageFragment.java
@@ -45,6 +45,8 @@
    private int currentPage = 0; // 当前页码
    private int total = 0; // 最后页码
    private int totalCount = 0;//消息数量总数
    private boolean isLoadingMore = false; // 标记正在加载更多数据
    private final List<MessageBean> mList = new ArrayList<>();
@@ -142,7 +144,6 @@
                    messageRecoverAdapter.setList(mList);
                    messageRecoverAdapter.notifyDataSetChanged();
                }
                //刷新【已恢复】信息数量总数
                refreshRecoverCount();
                //显示没数据Ui样式
@@ -171,6 +172,7 @@
            if (eventBus.getType().equals(MessageStateType.processed)) {
                //消息详情回调
                initData();
                ++totalCount;
                updateListData();
            }
@@ -202,6 +204,7 @@
                if (messageListClass != null) {
                    total = (int) messageListClass.getTotalPage();
                    currentPage = (int) messageListClass.getPageNo();
                    totalCount = (int) messageListClass.getTotalCount();
                    updateListData();
                }
                isLoadingMore = false;
@@ -235,7 +238,7 @@
                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);
                    }
                }