Fix pagination in lists
This commit is contained in:
parent
fd3fff6322
commit
6dac05a21d
|
@ -177,6 +177,7 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
|
|||
public void onSuccess(List<Status> result){
|
||||
if(refreshing)
|
||||
list.scrollToPosition(0);
|
||||
maxID=result.isEmpty() ? null : result.get(result.size()-1).id;
|
||||
onDataLoaded(result, !result.isEmpty());
|
||||
}
|
||||
})
|
||||
|
@ -189,6 +190,7 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
|
|||
public void onSuccess(List<Status> result){
|
||||
if(refreshing)
|
||||
list.scrollToPosition(0);
|
||||
maxID=result.isEmpty() ? null : result.get(result.size()-1).id;
|
||||
onDataLoaded(result, !result.isEmpty());
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue