mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-26 09:44:43 +01:00
Fixed loading more comments even though there are no more comments.
This commit is contained in:
parent
70fcc671d8
commit
3a58964d6c
@ -191,7 +191,6 @@ class ParseComment {
|
|||||||
commaSeparatedChildren.deleteCharAt(commaSeparatedChildren.length() - 1);
|
commaSeparatedChildren.deleteCharAt(commaSeparatedChildren.length() - 1);
|
||||||
parseFailed = false;
|
parseFailed = false;
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
parseMoreCommentBasicInfoListener.onParseMoreCommentBasicInfoFailed();
|
|
||||||
parseFailed = true;
|
parseFailed = true;
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -494,7 +494,9 @@ public class ViewPostDetailActivity extends AppCompatActivity {
|
|||||||
mRecyclerView.setAdapter(mAdapter);
|
mRecyclerView.setAdapter(mAdapter);
|
||||||
mCommentCardView.setVisibility(View.VISIBLE);
|
mCommentCardView.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
fetchMoreComment();
|
if(!mCommaSeparatedChildren.equals("")) {
|
||||||
|
fetchMoreComment();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
mNoCommentWrapperLinearLayout.setVisibility(View.VISIBLE);
|
mNoCommentWrapperLinearLayout.setVisibility(View.VISIBLE);
|
||||||
glide.load(R.drawable.no_comment_indicator).into(mNoCommentImageView);
|
glide.load(R.drawable.no_comment_indicator).into(mNoCommentImageView);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user