diff --git a/app/build.gradle b/app/build.gradle index da29d78f..62af4345 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,8 +15,8 @@ android { applicationId "gr.thmmy.mthmmy" minSdkVersion 19 targetSdkVersion 29 - versionCode 24 - versionName "1.8.1" + versionCode 25 + versionName "1.8.2" archivesBaseName = "mTHMMY-v$versionName" buildConfigField "String", "CURRENT_BRANCH", "\"" + getCurrentBranch() + "\"" buildConfigField "String", "COMMIT_HASH", "\"" + getCommitHash() + "\"" diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java index 9e297dcf..0623111f 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java @@ -259,7 +259,7 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo // Purification for extreme edge cases String pSubjectConcat = subBoardCol.select("a").first().text(); - pLastPost = pLastPost.replaceAll(pSubjectConcat, ""); + pLastPost = pLastPost.replace(pSubjectConcat, ""); String pLastUser; matcher = pLastPostPattern.matcher(pLastPost); //Don't even try simply grabbing , user might be guest 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 1a7922ff..7f28e8dc 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.text().substring(1); + String attachedFileName = tmpAttachedFileUrlAndName.wholeText().substring(1); //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.text().substring(1); + String attachedFileName = tmpAttachedFileUrlAndName.wholeText().substring(1); //Gets file's info (size and download count) String postAttachmentsTextSbstr = postAttachmentsText.substring(