diff options
author | Docile-Alligator <chineseperson5@gmail.com> | 2021-11-11 12:33:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 12:33:37 +0000 |
commit | 4bd6ae0c4cdbca81282e51bb6b43460ef85093f6 (patch) | |
tree | 8f8476803bafa4c6c516b0ddafafda8594375850 | |
parent | 24f5682bf800d1fcd71e65f827e619ea89d1bf0c (diff) | |
parent | 96b9b51b6d4da2060988358f04db6ffce7a0235a (diff) | |
download | infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.tar infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.tar.gz infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.tar.bz2 infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.tar.lz infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.tar.xz infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.tar.zst infinity-for-reddit-4bd6ae0c4cdbca81282e51bb6b43460ef85093f6.zip |
Merge pull request #525 from scria1000/comment-markdown-fix
Fix markdown not rendering in some comments
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java index e3a1d53a..e298734c 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java @@ -137,7 +137,7 @@ public class CommentsListingRecyclerViewAdapter extends PagedListAdapter<Comment @Override public void afterSetText(@NonNull TextView textView) { textView.setHighlightColor(Color.TRANSPARENT); - SpannableStringBuilder markdownStringBuilder = new SpannableStringBuilder(textView.getText().toString()); + SpannableStringBuilder markdownStringBuilder = new SpannableStringBuilder(textView.getText()); Pattern spoilerPattern = Pattern.compile(">![\\S\\s]+?!<"); Matcher matcher = spoilerPattern.matcher(markdownStringBuilder); int start = 0; diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java index 2dad51f9..b9d6bfd0 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java @@ -180,7 +180,7 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi @Override public void afterSetText(@NonNull TextView textView) { - SpannableStringBuilder markdownStringBuilder = new SpannableStringBuilder(textView.getText().toString()); + SpannableStringBuilder markdownStringBuilder = new SpannableStringBuilder(textView.getText()); Pattern spoilerPattern = Pattern.compile(">![\\S\\s]+?!<"); Matcher matcher = spoilerPattern.matcher(markdownStringBuilder); int start = 0; |