From bbfa78d686933fd2ff7fc5a155434ffebb0e80a2 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Sun, 11 Oct 2020 19:16:59 +0300 Subject: [PATCH] Crash fix for certain attachments --- .../java/gr/thmmy/mthmmy/activities/topic/TopicParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java index 7f28e8dc..f89e6717 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java @@ -294,7 +294,7 @@ public class TopicParser { Timber.e(e, "Attached file malformed url"); break; } - String attachedFileName = tmpAttachedFileUrlAndName.wholeText().substring(1); + String attachedFileName = tmpAttachedFileUrlAndName.text(); //Gets file's info (size and download count) String postAttachmentsTextSbstr = postAttachmentsText.substring( @@ -366,7 +366,7 @@ public class TopicParser { Timber.e(e, "Attached file malformed url"); break; } - String attachedFileName = tmpAttachedFileUrlAndName.wholeText().substring(1); + String attachedFileName = tmpAttachedFileUrlAndName.text(); //Gets file's info (size and download count) String postAttachmentsTextSbstr = postAttachmentsText.substring(