测试修改

This commit is contained in:
18401019693
2022-10-11 10:59:19 +08:00
parent 0a6471163c
commit 11d0afde56
2 changed files with 5 additions and 4 deletions

View File

@@ -349,7 +349,8 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
}
}
public synchronized void insertItem(LiveChatBean bean) {
@SuppressLint("NotifyDataSetChanged")
public void insertItem(LiveChatBean bean) {
if (bean == null) {
return;
@@ -373,7 +374,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
mPosition = size;
}
}
notifyItemChanged(getItemCount() - 1);
notifyDataSetChanged();
}