Closed chefish closed 9 years ago
The BaseQuickAdapter creates its own list because it's safer: if you remove an element of your list and don't notify the adapter, it would make your app crash because the adapter will try to build items which don't exist anymore.
If you updated your list, please use replaceAll
instead. It will update the internal adapter list and call notifyDatasetChanged()
for you.
The data is always new. So we cannot use notifyDataSetChanged. I think it shoud be this.data = data == null ? new ArrayList() : data;