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 channel item span count for SubscriptionFragment #6814

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Jul 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 #6705 I didn't notice that, when calculating the maximum number of grid list items that could fit horizontally, the SubscriptionFragment used a different minWidth than the other list fragments. This is because all other list fragments contain StreamInfoItems, while the SubscriptionFragment contains ChannelInfoItems. So I've created two methods to calculate the span count: one for streams (doing the same calculation as before) and one for channels.

Before/After Screenshots/Screen Record

See the screenshots in #6802. This restores the correct pre-0.21.7 behaviour.

Fixes the following issue(s)

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

@TobiGr TobiGr added bug Issue is related to a bug GUI Issue is related to the graphical user interface labels Jul 31, 2021
@Stypox
Copy link
Member Author

Stypox commented Aug 1, 2021

@desmonk could you test if this works? 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.

@triallax
Copy link
Contributor

triallax commented Aug 3, 2021

The PR fixes the issue for the original author, see #6802 (comment).

This was referenced Aug 4, 2021
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.

Looks good.
Should we target the dev or release_0.21.9 branch?

@Stypox Stypox changed the base branch from dev to release_0.21.9 August 5, 2021 12:24
@Stypox
Copy link
Member Author

Stypox commented Aug 5, 2021

@TobiGr release_0.21.9, I forgot to change it

@Stypox Stypox merged commit a3440cc into TeamNewPipe:release_0.21.9 Aug 5, 2021
@Stypox Stypox deleted the channel-grid-span-count branch August 5, 2021 12:25
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 GUI Issue is related to the graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version 0.21.7 Broke Subscriptions Page Condensed Grid Layout
3 participants