Increase limit on explore -> news
This commit is contained in:
parent
30fcb19f9b
commit
2c9e92a254
|
@ -8,7 +8,8 @@ import org.joinmastodon.android.model.Card;
|
|||
import java.util.List;
|
||||
|
||||
public class GetTrendingLinks extends MastodonAPIRequest<List<Card>>{
|
||||
public GetTrendingLinks(){
|
||||
public GetTrendingLinks(int limit){
|
||||
super(HttpMethod.GET, "/trends/links", new TypeToken<>(){});
|
||||
addQueryParameter("limit", String.valueOf(limit));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public class DiscoverNewsFragment extends BaseRecyclerFragment<DiscoverNewsFragm
|
|||
|
||||
@Override
|
||||
protected void doLoadData(int offset, int count){
|
||||
currentRequest=new GetTrendingLinks()
|
||||
currentRequest=new GetTrendingLinks(40)
|
||||
.setCallback(new SimpleCallback<>(this){
|
||||
@Override
|
||||
public void onSuccess(List<Card> result){
|
||||
|
|
Loading…
Reference in New Issue