Browse Source

close #1638

renovate/androidx.fragment-fragment-ktx-1.x
Austin Huang 3 years ago
parent
commit
4a295f0617
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java

2
app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java

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

Loading…
Cancel
Save