aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorscria1000 <91804886+scria1000@users.noreply.github.com>2021-11-10 22:21:18 +0000
committerscria1000 <91804886+scria1000@users.noreply.github.com>2021-11-10 22:21:18 +0000
commit2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332 (patch)
tree2ec57f1497c5f239ca99c8d5218841f80cd7f304 /app/src/main/java/ml
parent24f5682bf800d1fcd71e65f827e619ea89d1bf0c (diff)
downloadinfinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.tar
infinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.tar.gz
infinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.tar.bz2
infinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.tar.lz
infinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.tar.xz
infinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.tar.zst
infinity-for-reddit-2e0ef26d0354f817dc9b1ae3b4cfa53de43f2332.zip
Fix markdown not rendering in some comments
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java2
1 files changed, 1 insertions, 1 deletions
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;