I'm so stupid
This commit is contained in:
@@ -58,17 +58,9 @@ public class HomeTimelineFragment extends StatusListFragment{
|
||||
|
||||
@Override
|
||||
protected void doLoadData(int offset, int count){
|
||||
// currentRequest=new GetHomeTimeline(offset>0 ? getMaxID() : null, null, count)
|
||||
// .setCallback(new SimpleCallback<>(this){
|
||||
// @Override
|
||||
// public void onSuccess(List<Status> result){
|
||||
// onDataLoaded(result, !result.isEmpty());
|
||||
// }
|
||||
// })
|
||||
// .exec(accountID);
|
||||
AccountSessionManager.getInstance()
|
||||
.getAccount(accountID).getCacheController()
|
||||
.getHomeTimeline(offset>0 ? getMaxID() : null, count, new SimpleCallback<>(this){
|
||||
.getHomeTimeline(offset>0 ? getMaxID() : null, count, refreshing, new SimpleCallback<>(this){
|
||||
@Override
|
||||
public void onSuccess(List<Status> result){
|
||||
onDataLoaded(result, !result.isEmpty());
|
||||
|
||||
@@ -78,24 +78,9 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
|
||||
|
||||
@Override
|
||||
protected void doLoadData(int offset, int count){
|
||||
// new GetNotifications(offset>0 ? getMaxID() : null, count, types)
|
||||
// .setCallback(new SimpleCallback<>(this){
|
||||
// @Override
|
||||
// public void onSuccess(List<Notification> result){
|
||||
// if(refreshing)
|
||||
// relationships.clear();
|
||||
// onDataLoaded(result, !result.isEmpty());
|
||||
// Set<String> needRelationships=result.stream()
|
||||
// .filter(ntf->ntf.status==null && !relationships.containsKey(ntf.account.id))
|
||||
// .map(ntf->ntf.account.id)
|
||||
// .collect(Collectors.toSet());
|
||||
// loadRelationships(needRelationships);
|
||||
// }
|
||||
// })
|
||||
// .exec(accountID);
|
||||
AccountSessionManager.getInstance()
|
||||
.getAccount(accountID).getCacheController()
|
||||
.getNotifications(offset>0 ? getMaxID() : null, count, onlyMentions, new SimpleCallback<>(this){
|
||||
.getNotifications(offset>0 ? getMaxID() : null, count, onlyMentions, refreshing, new SimpleCallback<>(this){
|
||||
@Override
|
||||
public void onSuccess(List<Notification> result){
|
||||
if(refreshing)
|
||||
|
||||
Reference in New Issue
Block a user