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 97545a1f8..6b60cbcf9 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java @@ -66,8 +66,8 @@ public class HomeTimelineFragment extends StatusListFragment { public void onSuccess(CacheablePaginatedResponse> result){ if (getActivity() == null) return; List filteredItems = filterPosts(result.items); - onDataLoaded(filteredItems, !result.items.isEmpty()); maxID=result.maxID; + onDataLoaded(filteredItems, !result.items.isEmpty()); if(result.isFromCache()) loadNewPosts(); } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java index c01d88f15..a8dfc1c39 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java @@ -150,13 +150,13 @@ public class NotificationsListFragment extends BaseStatusListFragmentn.type!=null).collect(Collectors.toList()), !result.items.isEmpty()); Set needRelationships=result.items.stream() .filter(ntf->ntf.status==null && !relationships.containsKey(ntf.account.id)) .map(ntf->ntf.account.id) .collect(Collectors.toSet()); loadRelationships(needRelationships); - maxID=result.maxID; Markers markers = AccountSessionManager.getInstance().getAccount(accountID).markers; if(offset==0 && !result.items.isEmpty() && !result.isFromCache() && markers != null && markers.notifications != null){