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

Refactor BrowseGridFragment hierarchy into a single class #1970

Merged
merged 2 commits into from
Aug 14, 2022

Conversation

nielsvanvelzen
Copy link
Member

BrowseGridFragment was the only one using these two

Before: BrowseGridFragment extends StdGridFragment extends GridFragment extends Fragment
After: BrowseGridFragment Fragment

Merging these classes removed a lot of boilerplate code and should make it easier to maintain it. Although the code is still quite messy. I've removed all the getter/setter functions that were only used in the class itself and merged some variables that were kept in both the grid and browsegrid fragments.

There are no behavior changes in this PR.

Changes

  • Merge StdGridFragment into BrowseGridFragment
  • Merge GridFragment into BrowseGridFragment

Issues

@nielsvanvelzen nielsvanvelzen added the refactor Improvements to code realiability, readability and quality label Aug 13, 2022
@nielsvanvelzen nielsvanvelzen added this to the v0.15.0 milestone Aug 13, 2022
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 13 potential problems in the proposed changes. Check the Files changed tab for more details.

@Andy2244
Copy link
Contributor

Can this be merged into master, so i can directly use the cleaned-up classes.
I'm working on a few PR that all depend on this code, so would be really hard to merge.

@nielsvanvelzen nielsvanvelzen merged commit 6e54d2d into jellyfin:master Aug 14, 2022
@nielsvanvelzen nielsvanvelzen deleted the merge-grid-fragment branch August 14, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to code realiability, readability and quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants