-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Paging. #8718
Use Paging. #8718
Conversation
282bab6
to
5e83456
Compare
This PR contains the commits from the Lifecycle PR. Could you fix this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of this a lot.
Some comments:
|
||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SuggestionItemHolder { | ||
TODO("Not yet implemented") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO detected, is there something to be done here?
Edit: I guess that's why it's a draft lol.
1dbff2e
to
b98b14a
Compare
Interesting! Since I don't know much about good practices for Android design, if you could provide some insight into how you did things I would be really glad :-) |
It seems like making use of the Paging library will require extensive changes to the extractor as well, since it assumes that the additional page items will be of the same type as the initial ones, while the extractor makes use of separate types for additional items. Retrofit could be useful there. A useful resource: https://developer.android.com/codelabs/android-paging @TacoTheDank @Stypox What do you think? Will the library be useful enough for these changes? |
b98b14a
to
ba477dc
Compare
I think each and every list present in NewPipe should be the same, and should hence be able to display all kinds of info items. E.g. info items that come to my mind are: video, channel, playlist, local playlist, video from history, subscription, ... So |
Yeah, definitely. I think it would be best to start with using a view model for the search fragment (I made a separate PR for that here: #8746) before switching to Paging there ( |
ba477dc
to
6ca604c
Compare
Kudos, SonarCloud Quality Gate passed! |
6ca604c
to
96649fb
Compare
What is it?
Description of the changes in your PR
Fixes the following issue(s)
Relies on the following changes
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence