Browse Source
fix comments crash
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
1 additions and
1 deletions
-
app/src/main/java/awais/instagrabber/fragments/CommentsViewerFragment.java
|
@ -84,8 +84,8 @@ public final class CommentsViewerFragment extends BottomSheetDialogFragment impl |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void onResult(final List<CommentModel> commentModels) { |
|
|
public void onResult(final List<CommentModel> commentModels) { |
|
|
endCursor = commentModels.get(0).getEndCursor(); |
|
|
|
|
|
if (commentModels != null && commentModels.size() > 0) { |
|
|
if (commentModels != null && commentModels.size() > 0) { |
|
|
|
|
|
endCursor = commentModels.get(0).getEndCursor(); |
|
|
List<CommentModel> list = commentsViewModel.getList().getValue(); |
|
|
List<CommentModel> list = commentsViewModel.getList().getValue(); |
|
|
list = list != null ? new LinkedList<>(list) : new LinkedList<>(); |
|
|
list = list != null ? new LinkedList<>(list) : new LinkedList<>(); |
|
|
// final int oldSize = list != null ? list.size() : 0; |
|
|
// final int oldSize = list != null ? list.size() : 0; |
|
|