From 058c25b3ad6b0ca4258e774d56e1e21e1c30e2a4 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Wed, 30 Nov 2016 17:05:57 +0200 Subject: [PATCH] User's extra info parsing minor fixes --- .../main/java/gr/thmmy/mthmmy/activities/TopicActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/TopicActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/TopicActivity.java index bd3bec83..e7385f4e 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/TopicActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/TopicActivity.java @@ -434,7 +434,7 @@ public class TopicActivity extends BaseActivity { if (line.contains("Posts:")) { postsLineIndex = infoList.indexOf(line); //Remove any line breaks and spaces on the start and end - p_numberOfPosts = p_personalText.replace("\n", "") + p_numberOfPosts = line.replace("\n", "") .replace("\r", "").trim(); } if (line.contains("Gender:")) { @@ -469,7 +469,8 @@ public class TopicActivity extends BaseActivity { //If this line isn't empty and doesn't contain user's avatar if (!Objects.equals(thisLine, "") && thisLine != null && !Objects.equals(thisLine, " \n") - && !thisLine.contains("avatar")) { + && !thisLine.contains("avatar") + && !thisLine.contains("