测试修改
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user