From 80058ff6ab192b830b39566ee07a5903c450cf6c Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 21 Aug 2018 00:08:48 +0800 Subject: Load comment and post content text in HTML form instead of String. Fixed a bug that the icon of subreddits was not parsed properly in ParseSubredditData class. --- .../infinityforreddit/CommentRecyclerViewAdapter.java | 8 +++++--- .../main/java/ml/docilealligator/infinityforreddit/JSONUtils.java | 4 ++-- .../java/ml/docilealligator/infinityforreddit/ParseComment.java | 2 +- .../main/java/ml/docilealligator/infinityforreddit/ParsePost.java | 7 ++++++- .../ml/docilealligator/infinityforreddit/ParseSubredditData.java | 6 ++++++ .../docilealligator/infinityforreddit/ViewPostDetailActivity.java | 6 ++++-- 6 files changed, 24 insertions(+), 9 deletions(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentRecyclerViewAdapter.java index eef1a004..8af5a765 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentRecyclerViewAdapter.java @@ -14,6 +14,8 @@ import android.widget.Toast; import com.android.volley.RequestQueue; +import org.sufficientlysecure.htmltextview.HtmlTextView; + import java.util.ArrayList; class CommentRecyclerViewAdapter extends RecyclerView.Adapter { @@ -40,7 +42,7 @@ class CommentRecyclerViewAdapter extends RecyclerView.Adapter