Browse Source

Crash fix for certain attachments

pull/70/head
Ezerous 4 years ago
parent
commit
bbfa78d686
  1. 4
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java

4
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(

Loading…
Cancel
Save