-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add playlist tab to main page #3506
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
Conversation
wb9688
left a comment
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 did a quick code review, so I didn't really look in detail. There are also some more variables that could be final. I think you should use the bookmark icon though.
app/src/main/java/org/schabi/newpipe/settings/SelectPlaylistFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/settings/SelectPlaylistFragment.java
Outdated
Show resolved
Hide resolved
Stypox
left a comment
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.
Thank you for the contribution :-D
Tip: in the "Fixes the following issues" section you should put issues with format fixes #1234, so that GitHub will automatically close that issue upon merge. Also, #1234 is enough, there is no need for the whole url ;-)
I saw the Tab file contains many magic variables that should be replaced by constants (i.e. -1, , ), but let's leave this for another code-improvement PR.
app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java
Show resolved
Hide resolved
Cool, thanks! |
|
I just rebased this. |
app/src/main/java/org/schabi/newpipe/settings/SelectPlaylistFragment.java
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/util/PlaylistItemsUtils.java
Outdated
Show resolved
Hide resolved
Add bookmarked playlist as tab in the main page (by Settings > Content > Content of main page)
* add final declarations where missing * fix typo "onSelectedLisener" to "onSelectedListener" * rename "baseEqual" to "baseEquals" * replace getPlaylistsObserver code with functions pointers * remove duplicate code in constructors * remove useless null checks
In order not to have a utils class just for one function
|
I rebased, squashed two review-fix commits and changed commit names to a better format. I moved merge() to PlaylistLocalItem and marked both your review comments as resolved @wb9688 |
TobiGr
left a comment
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.
@Stypox Feel free to merge once you finished your review.
What is it?
Description of the changes in your PR
Add bookmarked playlist as tab in the main page (by Settings > Content > Content of main page)
Fixes the following issue(s)
Testing apk
NewPipe_PlaylistTab-debug.zip
Agreement