1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 08:37:29 +00:00

fix comments crash

This commit is contained in:
Austin Huang 2020-12-24 11:05:19 -05:00
parent f909408916
commit 7ee756eff3
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -84,8 +84,8 @@ public final class CommentsViewerFragment extends BottomSheetDialogFragment impl
@Override
public void onResult(final List<CommentModel> commentModels) {
endCursor = commentModels.get(0).getEndCursor();
if (commentModels != null && commentModels.size() > 0) {
endCursor = commentModels.get(0).getEndCursor();
List<CommentModel> list = commentsViewModel.getList().getValue();
list = list != null ? new LinkedList<>(list) : new LinkedList<>();
// final int oldSize = list != null ? list.size() : 0;