TwidereX-Android icon indicating copy to clipboard operation
TwidereX-Android copied to clipboard

option to change how many posts are shown on refresh

Open Kreuger opened this issue 3 years ago • 2 comments

Hey all. whenever I open my feed and refresh it, Im only giving like 20 new posts and then have to click "load more". I was wondering if you guys could add an option to change how many new tweets are shown so that we dont have to keep clicking load more if we havent been on in a couple of days.

Kreuger avatar Mar 06 '22 23:03 Kreuger

I would also really appreciate this, together with https://github.com/TwidereProject/TwidereX-Android/issues/293 this makes the app really impractical for me.

I looked around the code and, from what I can gather, the defaultLoadCount needs to be replaced by a user setting. I tried doing that, but apparently all functions using defaultLoadCount would then need to be @Composable in order to be able to access setting objects like LocalAppearancePreferences. This seems like it'd require some restructuring. However, if someone with more experience in Android development (I have almost none) can point me to a simpler way of accessing user settings, I can give that a try.

kb173 avatar May 25 '22 20:05 kb173

Switching to a v2 api call for the home timeline makes this less of an issue https://twittercommunity.com/t/reverse-chronological-home-timeline-in-the-twitter-api-v2/171549 , a lot more tweets in one go and you can backfill more easily

yoshimo avatar May 25 '22 21:05 yoshimo