We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3dbccb commit a40a6b6Copy full SHA for a40a6b6
diffadapter/src/main/java/com/silencedut/diffadapter/DiffAdapter.java
@@ -302,6 +302,22 @@ public void run() {
302
303
}
304
305
+ public <T extends BaseMutableData> void addDatas(final List<T> datas) {
306
+ if (datas == null) {
307
+ return;
308
+ }
309
+
310
+ mDifferHelper.updateOldListSize(new Runnable() {
311
+ @Override
312
+ public void run() {
313
+ mDatas.addAll(datas);
314
+ notifyItemChanged(mDatas.size() - datas.size());
315
316
317
+ }, mDatas);
318
319
320
321
public void deleteData(final Object uniqueItemFeature) {
322
if (uniqueItemFeature == null) {
323
return;
0 commit comments