mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-23 23:27:30 +00:00
close #1638
This commit is contained in:
parent
0535df25b0
commit
4a295f0617
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user