don't return before refreshDone

This commit is contained in:
sk 2023-10-20 10:33:45 +02:00
parent 387b31193f
commit ef0fbb26a4
1 changed files with 1 additions and 1 deletions

View File

@ -136,6 +136,7 @@ public class HomeTimelineFragment extends StatusListFragment {
public void onSuccess(List<Status> result){ public void onSuccess(List<Status> result){
currentRequest=null; currentRequest=null;
dataLoading=false; dataLoading=false;
refreshDone();
if(result.isEmpty() || getActivity()==null) if(result.isEmpty() || getActivity()==null)
return; return;
Status last=result.get(result.size()-1); Status last=result.get(result.size()-1);
@ -157,7 +158,6 @@ public class HomeTimelineFragment extends StatusListFragment {
prependItems(toAdd, true); prependItems(toAdd, true);
if(parent != null && GlobalUserPreferences.showNewPostsButton) parent.showNewPostsButton(); if(parent != null && GlobalUserPreferences.showNewPostsButton) parent.showNewPostsButton();
} }
refreshDone();
} }
@Override @Override