Browse Source

Hotfix - display any number of recents

pull/24/head
Ezerous 8 years ago
parent
commit
bb9ce7855c
  1. 3
      app/src/main/java/gr/thmmy/mthmmy/activities/main/recent/RecentFragment.java

3
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));
}

Loading…
Cancel
Save