mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 08:37:29 +00:00
fix comments crash
This commit is contained in:
parent
f909408916
commit
7ee756eff3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user