From 5f107fef251453aa548f7b5db791d3009b5f7463 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 27 Jul 2024 11:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E5=B0=91=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8=E6=95=B0=E7=BB=84=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E8=B6=8A=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AbsMainMessageChatListFragment.java | 21 ++++++++++++------- .../yunbao/common/http/CommonHttpUtil.java | 6 ++++++ config.gradle | 2 +- .../live/dialog/LiveUserDialogFragment.java | 7 +++++++ .../main/activity/UserHomeActivity.java | 15 +++++++++---- 5 files changed, 39 insertions(+), 12 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/fragment/AbsMainMessageChatListFragment.java b/common/src/main/java/com/yunbao/common/fragment/AbsMainMessageChatListFragment.java index e17e9d1af..41f81862a 100644 --- a/common/src/main/java/com/yunbao/common/fragment/AbsMainMessageChatListFragment.java +++ b/common/src/main/java/com/yunbao/common/fragment/AbsMainMessageChatListFragment.java @@ -46,9 +46,9 @@ import io.rong.imlib.model.UserInfo; public abstract class AbsMainMessageChatListFragment extends Fragment { private static final String TAG = "全部聊天"; - public RecyclerView recyclerView; - public MainConversationListAdapter mAdapter; - public SmartRefreshLayout refreshLayout; + public RecyclerView recyclerView; + public MainConversationListAdapter mAdapter; + public SmartRefreshLayout refreshLayout; public void setAdapter(MainConversationListAdapter mAdapter) { this.mAdapter = mAdapter; @@ -136,7 +136,7 @@ public abstract class AbsMainMessageChatListFragment extends Fragment { }); } - public void loadLiveOnlineStatus(List srcList, OnRecyclerListRefreshListener> onRefreshListener){ + public void loadLiveOnlineStatus(List srcList, OnRecyclerListRefreshListener> onRefreshListener) { List uids = new ArrayList<>(); isNet = true; for (BaseUiConversation conversation : srcList) { @@ -148,10 +148,17 @@ public abstract class AbsMainMessageChatListFragment extends Fragment { CommonHttpUtil.getUserOnline(String.join(",", uids), new com.yunbao.common.http.HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { - if(code==0&&info!=null){ + if (code == 0 && info != null) { List listUserBean = JSON.parseArray(Arrays.toString(info), MsgOnlineStatusBean.class); - for (int i = 0; i