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
1 changed files with 1 additions and 1 deletions

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);
}
}