Skip to content

Commit

Permalink
don't return before refreshDone
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Oct 20, 2023
1 parent 387b311 commit ef0fbb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ private void loadNewPosts(){
public void onSuccess(List<Status> result){
currentRequest=null;
dataLoading=false;
refreshDone();
if(result.isEmpty() || getActivity()==null)
return;
Status last=result.get(result.size()-1);
Expand All @@ -157,7 +158,6 @@ public void onSuccess(List<Status> result){
prependItems(toAdd, true);
if(parent != null && GlobalUserPreferences.showNewPostsButton) parent.showNewPostsButton();
}
refreshDone();
}

@Override
Expand Down

0 comments on commit ef0fbb2

Please sign in to comment.