mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-03-02 05:47:56 +00:00
Fixed loading more comments even though there are no more comments.
This commit is contained in:
@ -191,7 +191,6 @@ class ParseComment {
|
||||
commaSeparatedChildren.deleteCharAt(commaSeparatedChildren.length() - 1);
|
||||
parseFailed = false;
|
||||
} catch (JSONException e) {
|
||||
parseMoreCommentBasicInfoListener.onParseMoreCommentBasicInfoFailed();
|
||||
parseFailed = true;
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@ -494,7 +494,9 @@ public class ViewPostDetailActivity extends AppCompatActivity {
|
||||
mRecyclerView.setAdapter(mAdapter);
|
||||
mCommentCardView.setVisibility(View.VISIBLE);
|
||||
|
||||
fetchMoreComment();
|
||||
if(!mCommaSeparatedChildren.equals("")) {
|
||||
fetchMoreComment();
|
||||
}
|
||||
} else {
|
||||
mNoCommentWrapperLinearLayout.setVisibility(View.VISIBLE);
|
||||
glide.load(R.drawable.no_comment_indicator).into(mNoCommentImageView);
|
||||
|
||||
Reference in New Issue
Block a user