From db4afd4c8f718691c512b3e5640b5df90af4bb8c Mon Sep 17 00:00:00 2001 From: Grishka Date: Sat, 26 Oct 2024 07:21:45 +0300 Subject: [PATCH] fix --- .../android/fragments/HomeTimelineFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 05baf106..599cd04e 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java @@ -463,16 +463,16 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD dataLoading=true; boolean needCache=listMode==ListMode.FOLLOWING; boolean insertBelowGap=!gap.enteredFromTop; - String maxID, sinceID; + String maxID, minID; if(gap.enteredFromTop){ maxID=item.getItemID(); - sinceID=null; + minID=null; }else{ maxID=null; int gapPos=displayItems.indexOf(gap); - sinceID=displayItems.get(gapPos+1).parentID; + minID=displayItems.get(gapPos+1).parentID; } - loadAdditionalPosts(maxID, null, 20, sinceID, new Callback<>(){ + loadAdditionalPosts(maxID, minID, 20, minID, new Callback<>(){ @Override public void onSuccess(List result){