From 4f99f9b296bbd86597d16cd0744b98e581e7d5b8 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Fri, 14 Jul 2017 22:41:47 +0300 Subject: [PATCH] Unread posts tab minor fix --- .../thmmy/mthmmy/activities/main/unread/UnreadFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java index 726d502f..4b5e6b6c 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java @@ -5,6 +5,7 @@ import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -146,6 +147,7 @@ public class UnreadFragment extends BaseFragment { Elements unread = document.select("table.bordercolor[cellspacing=1] tr:not(.titlebg)"); if (!unread.isEmpty()) { topicSummaries.clear(); + Log.d("UnreadFragment", unread.html()); for (Element row : unread) { Elements information = row.select("td"); String link = information.get(2).select("a").first().attr("href"); @@ -154,7 +156,7 @@ public class UnreadFragment extends BaseFragment { Element lastUserAndDate = information.get(6); String lastUser = lastUserAndDate.select("a").text(); String dateTime = lastUserAndDate.select("span").html(); - dateTime = dateTime.substring(3, dateTime.indexOf("")); dateTime = dateTime.replace("", ""); topicSummaries.add(new TopicSummary(link, title, lastUser, dateTime));