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