xda/XDA-One

Pagination per_page is hardcoded

rwestergren opened this issue · 2 comments

https://github.com/xda/XDA-One/blob/master/android/src/main/java/com/xda/one/util/FragmentUtils.java#L86

getTotalPosts() / 10 should be updated. Either per_page should be used, or just the total_pages, since the calculation is already done server-side.

I don't have the total number of post pages - it is not returned by the server. per_page and total_pages are returned for the threads feed but I can't get per_page and total_pages until I actually get the post feed.

I see. The per_page property is for threads though, so I'll have to return the posts per_page property for posts somehow. I'll get back to you on that.