diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java index c68fb5c8d..36a0a0969 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java @@ -177,6 +177,7 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD public void onSuccess(List result){ if(refreshing) list.scrollToPosition(0); + maxID=result.isEmpty() ? null : result.get(result.size()-1).id; onDataLoaded(result, !result.isEmpty()); } }) @@ -189,6 +190,7 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD public void onSuccess(List result){ if(refreshing) list.scrollToPosition(0); + maxID=result.isEmpty() ? null : result.get(result.size()-1).id; onDataLoaded(result, !result.isEmpty()); } })