parent
db4afd4c8f
commit
ced5fe4ee0
|
@ -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){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue