feat(remote-followers): fallback when results from remote server are empty
This commit is contained in:
@@ -79,7 +79,11 @@ public abstract class PaginatedAccountListFragment extends BaseAccountListFragme
|
|||||||
remoteAccount.acct = remoteAccount.username;
|
remoteAccount.acct = remoteAccount.username;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if(!result.isEmpty()){
|
||||||
onDataLoaded(result.stream().map(AccountItem::new).collect(Collectors.toList()), nextMaxID!=null);
|
onDataLoaded(result.stream().map(AccountItem::new).collect(Collectors.toList()), nextMaxID!=null);
|
||||||
|
} else {
|
||||||
|
loadFollower(offset, count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user