aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-02-21 04:37:58 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-02-21 04:37:58 +0000
commit3a58964d6cdde4435fb257542e89fea6de501dba (patch)
tree8a53fce8c7eaddb16b454eb7aa63f40bc5fcb124 /app/src/main/java/ml
parent70fcc671d8d30bf9e8c467130b65b736c51a8fa6 (diff)
downloadinfinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.tar
infinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.tar.gz
infinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.tar.bz2
infinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.tar.lz
infinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.tar.xz
infinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.tar.zst
infinity-for-reddit-3a58964d6cdde4435fb257542e89fea6de501dba.zip
Fixed loading more comments even though there are no more comments.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/ParseComment.java1
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/ViewPostDetailActivity.java4
2 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseComment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseComment.java
index 33b83084..92b5f10b 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseComment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseComment.java
@@ -191,7 +191,6 @@ class ParseComment {
commaSeparatedChildren.deleteCharAt(commaSeparatedChildren.length() - 1);
parseFailed = false;
} catch (JSONException e) {
- parseMoreCommentBasicInfoListener.onParseMoreCommentBasicInfoFailed();
parseFailed = true;
e.printStackTrace();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewPostDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewPostDetailActivity.java
index 181700cd..51e9fd31 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewPostDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewPostDetailActivity.java
@@ -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);