1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-24 07:37:30 +00:00
This commit is contained in:
Austin Huang 2021-07-13 21:19:44 -04:00
parent 0535df25b0
commit 4a295f0617
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -118,7 +118,7 @@ public final class StoryListViewerFragment extends Fragment implements SwipeRefr
endCursor = result.getMaxId();
final List<Story> models = archivesViewModel.getList().getValue();
final List<Story> modelsCopy = models == null ? new ArrayList<>() : new ArrayList<>(models);
modelsCopy.addAll(result.getItems());
if (result.getItems() != null) modelsCopy.addAll(result.getItems());
archivesViewModel.getList().postValue(modelsCopy);
}
}