-
-
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
Fix display of channel details when it has no videos #5963
Conversation
app/src/main/java/org/schabi/newpipe/fragments/list/BaseListInfoFragment.java
Outdated
Show resolved
Hide resolved
Thanks for opening a PR! Please try to make your PR title more descriptive next time. Instead of "Fixes #ISSUE," instead put the issue itself. For example, see the edited title. |
app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java
Outdated
Show resolved
Hide resolved
@cybersphinx @sauravrao637 Can one of you provide a channel link where that is the case |
Yeah Sure here it is . |
https://www.youtube.com/channel/UC4_2gEWKp78sE7MJMIqAZLQ Try this one. 😀 Fix works also for channels with no items on other services it seems. 👍 |
@mhmdanas Hi, I am waiting for review please update soon :) |
@sauravrao637 I can't reproduce the behaviour described in the issue with your provided channel on v0.20.10 |
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. Works for me. Please re-add the empty lines to increase readability.
app/src/main/java/org/schabi/newpipe/fragments/list/BaseListInfoFragment.java
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java
Outdated
Show resolved
Hide resolved
@XiangRongLin that's interesting. It must be a regression introduced in 0.21.0. 0.20.11 works, too. I guess that was caused by #5148 |
I can't read... i somehow read 0.21.0 in the issue as 0.20.10 I was already wondering if i should update my app, when i couldn't reproduce it. |
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've done the required changes :)
Please have a look
Try with this onehttps://www.youtube.com/channel/UCo0rk6fLb2V4SqBQwNBFuDA |
@mhmdanas You need to remove your "Changes Requested" status before this can be merged. Otherwise the button is not clickeable |
app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java
Outdated
Show resolved
Hide resolved
@XiangRongLin done. |
@sauravrao637 Can you squash it down to a single commit with the message set to the PR message. If i do it, the contributation may not show up on your profile. |
5fbd3b1
to
f8bedbb
Compare
@XiangRongLin , I did it after so many attempts :) but the message is "squash" :( |
f8bedbb
to
8f9eaa2
Compare
…x#5959 Fix display of channel details when it has no videos
What is it?
Description of the changes in your PR
in ChannelFragment.java do not throw emptyStateView error if no videos are present as there will be header in list which shows channel metadata and thus should be visible to user as expected by issue fix, also when there is no video the playlistController is hidden to prevent the app crash
showEmptySpace() hides all the views in list including header when there is some error so it should be not called when there is header in the list, so changes are done accordingly in BaseListInfoFragment.java
Fixes the following issue(s)
APK testing
On the website the APK can be found by going to the "Checks" tab below the title and then on "artifacts" on the right.
Due diligence