From bb9ce7855c21c038a1230db953323547ccada3e5 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Wed, 18 Jan 2017 00:35:10 +0200 Subject: [PATCH] Hotfix - display any number of recents --- .../gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java index 8b5d14b1..307f1b33 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java @@ -183,7 +183,7 @@ public class RecentFragment extends BaseFragment { private void parse(Document document) { Elements recent = document.select("#block8 :first-child div"); - if (recent.size() == 30) { + if (!recent.isEmpty()) { topicSummaries.clear(); for (int i = 0; i < recent.size(); i += 3) { @@ -210,7 +210,6 @@ public class RecentFragment extends BaseFragment { return; } - topicSummaries.add(new TopicSummary(link, title, lastUser, dateTime)); }