Skip to content
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

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

sauravrao637
Copy link
Contributor

@sauravrao637 sauravrao637 commented Mar 31, 2021

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

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

@triallax triallax changed the title Issue fix#5959 Fix display of channel details when it has no videos Mar 31, 2021
@triallax
Copy link
Contributor

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.

@XiangRongLin XiangRongLin added the bug Issue is related to a bug label Apr 1, 2021
@XiangRongLin
Copy link
Collaborator

@cybersphinx @sauravrao637 Can one of you provide a channel link where that is the case

@sauravrao637
Copy link
Contributor Author

@cybersphinx @sauravrao637 Can one of you provide a channel link where that is the case

Yeah Sure here it is .
:)
or you can search "no videos channel" and filter by channel and browse one with no video

@peat80
Copy link

peat80 commented Apr 1, 2021

https://www.youtube.com/channel/UC4_2gEWKp78sE7MJMIqAZLQ

Try this one. 😀

Fix works also for channels with no items on other services it seems. 👍

@sauravrao637
Copy link
Contributor Author

@mhmdanas Hi, I am waiting for review please update soon :)

@XiangRongLin
Copy link
Collaborator

@sauravrao637 I can't reproduce the behaviour described in the issue with your provided channel on v0.20.10

Copy link
Member

@TobiGr TobiGr left a 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.

@TobiGr
Copy link
Member

TobiGr commented Apr 3, 2021

@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

@XiangRongLin
Copy link
Collaborator

@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.

Copy link
Contributor Author

@sauravrao637 sauravrao637 left a 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

@sauravrao637
Copy link
Contributor Author

sauravrao637 commented Apr 3, 2021

@sauravrao637 I can't reproduce the behaviour described in the issue with your provided channel on v0.20.10

Try with this onehttps://www.youtube.com/channel/UCo0rk6fLb2V4SqBQwNBFuDA

@sauravrao637 sauravrao637 requested a review from TobiGr April 3, 2021 20:27
XiangRongLin
XiangRongLin previously approved these changes Apr 8, 2021
@XiangRongLin
Copy link
Collaborator

@mhmdanas You need to remove your "Changes Requested" status before this can be merged. Otherwise the button is not clickeable

triallax
triallax previously approved these changes Apr 8, 2021
@triallax
Copy link
Contributor

triallax commented Apr 8, 2021

@XiangRongLin done.

@XiangRongLin
Copy link
Collaborator

@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.

@sauravrao637
Copy link
Contributor Author

@XiangRongLin , I did it after so many attempts :) but the message is "squash" :(

@XiangRongLin
Copy link
Collaborator

@sauravrao637 try this one https://www.git-tower.com/learn/git/faq/edit-fix-commit-message/

@XiangRongLin XiangRongLin merged commit c9e0bf4 into TeamNewPipe:dev Apr 9, 2021
@sauravrao637 sauravrao637 deleted the IssueFix#5959 branch April 9, 2021 17:41
This was referenced Apr 11, 2021
tossj pushed a commit to tossj/NewPipe-legacy that referenced this pull request Apr 23, 2021
…x#5959

Fix display of channel details when it has no videos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't subscribe to channels without videos
5 participants