Revert "fix"

This reverts commit db4afd4c8f.
This commit is contained in:
Grishka 2024-10-27 04:33:48 +03:00
parent db4afd4c8f
commit ced5fe4ee0
1 changed files with 4 additions and 4 deletions

View File

@ -463,16 +463,16 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
dataLoading=true; dataLoading=true;
boolean needCache=listMode==ListMode.FOLLOWING; boolean needCache=listMode==ListMode.FOLLOWING;
boolean insertBelowGap=!gap.enteredFromTop; boolean insertBelowGap=!gap.enteredFromTop;
String maxID, minID; String maxID, sinceID;
if(gap.enteredFromTop){ if(gap.enteredFromTop){
maxID=item.getItemID(); maxID=item.getItemID();
minID=null; sinceID=null;
}else{ }else{
maxID=null; maxID=null;
int gapPos=displayItems.indexOf(gap); int gapPos=displayItems.indexOf(gap);
minID=displayItems.get(gapPos+1).parentID; sinceID=displayItems.get(gapPos+1).parentID;
} }
loadAdditionalPosts(maxID, minID, 20, minID, new Callback<>(){ loadAdditionalPosts(maxID, null, 20, sinceID, new Callback<>(){
@Override @Override
public void onSuccess(List<Status> result){ public void onSuccess(List<Status> result){