aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-11-19 16:38:33 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-11-19 16:38:33 +0000
commit93c076bf2367268f55408137973781cb492cc0c0 (patch)
treeabc0087a035e5bdd7ee2c5a36881852d2492c909
parentc5e1c5ddd000b071342f905ebf61d9bdcaa9ed47 (diff)
downloadinfinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.tar
infinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.tar.gz
infinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.tar.bz2
infinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.tar.lz
infinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.tar.xz
infinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.tar.zst
infinity-for-reddit-93c076bf2367268f55408137973781cb492cc0c0.zip
Temporarily disable showing Reddit preview images in posts.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/markdown/MarkdownUtils.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java5
2 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/markdown/MarkdownUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/markdown/MarkdownUtils.java
index d3d4387d..74d45bd0 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/markdown/MarkdownUtils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/markdown/MarkdownUtils.java
@@ -51,7 +51,7 @@ public class MarkdownUtils {
.usePlugin(MovementMethodPlugin.create(new SpoilerAwareMovementMethod()
.setOnLinkLongClickListener(onLinkLongClickListener)))
.usePlugin(LinkifyPlugin.create(Linkify.WEB_URLS))
- .usePlugin(imageAndGifPlugin)
+ //.usePlugin(imageAndGifPlugin)
.usePlugin(TableEntryPlugin.create(context))
.build();
}
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java
index f5f3b163..ed88d6f9 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java
@@ -150,7 +150,8 @@ public final class Utils {
}
public static String parseInlineRedditImages(String markdown) {
- StringBuilder markdownStringBuilder = new StringBuilder(markdown);
+ return markdown;
+ /*StringBuilder markdownStringBuilder = new StringBuilder(markdown);
Pattern inlineRedditImagePattern = REGEX_PATTERNS[6];
Matcher matcher = inlineRedditImagePattern.matcher(markdownStringBuilder);
int start = 0;
@@ -161,7 +162,7 @@ public final class Utils {
matcher = inlineRedditImagePattern.matcher(markdownStringBuilder);
}
- return markdownStringBuilder.toString();
+ return markdownStringBuilder.toString();*/
}
public static String trimTrailingWhitespace(String source) {