This commit is contained in:
ningwenqiang 2024-09-27 16:23:47 +08:00
parent 6322c36906
commit 380381c3fe

View File

@ -54,7 +54,7 @@ public class MainMessageChatFragment extends ConversationListFragment {
mConversationListViewModel.getConversationListLiveData().observe(this.getViewLifecycleOwner(), new Observer<List<BaseUiConversation>>() { mConversationListViewModel.getConversationListLiveData().observe(this.getViewLifecycleOwner(), new Observer<List<BaseUiConversation>>() {
@Override @Override
public void onChanged(List<BaseUiConversation> uiConversations) { public void onChanged(List<BaseUiConversation> uiConversations) {
int hashCode = UiConversationCodeUtil.getListHasCode(uiConversations); int hashCode = uiConversations.hashCode();
if (listHashCode != hashCode) { if (listHashCode != hashCode) {
Log.i("nwq", "刷新数据"); Log.i("nwq", "刷新数据");
listHashCode = hashCode; listHashCode = hashCode;