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

Use MutableObjectAdapter<Row> for rows #2075

Merged

Conversation

nielsvanvelzen
Copy link
Member

Depends on #2074

Changes

Use our custom ObjectAdapter that is more flexible for all item rows, right now this shouldn't change the behavior.

Issues

@nielsvanvelzen nielsvanvelzen added the refactor Improvements to code realiability, readability and quality label Sep 18, 2022
@nielsvanvelzen nielsvanvelzen added this to the v0.15.0 milestone Sep 18, 2022

//React to deletion
val dataRefreshService = get<DataRefreshService>(DataRefreshService::class.java)
if (activity != null && !requireActivity().isFinishing && currentRow != null && currentItem != null && currentItem!!.itemId != null && currentItem!!.itemId.equals(dataRefreshService.lastDeletedItemId)) {

Check warning

Code scanning / detekt

Complex conditions should be simplified and extracted into well-named methods if necessary.

This condition is too complex (6). Defined complexity threshold for conditions is set to '4'

//React to deletion
val dataRefreshService = get<DataRefreshService>(DataRefreshService::class.java)
if (activity != null && !requireActivity().isFinishing && currentRow != null && currentItem != null && currentItem!!.itemId != null && currentItem!!.itemId.equals(dataRefreshService.lastDeletedItemId)) {

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style.

Line detected, which is longer than the defined maximum line length in the code style.
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 96 potential problems in the proposed changes. Check the Files changed tab for more details.

@nielsvanvelzen nielsvanvelzen marked this pull request as ready for review September 19, 2022 17:09
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 96 potential problems in the proposed changes. Check the Files changed tab for more details.

@nielsvanvelzen nielsvanvelzen merged commit 4dd0feb into jellyfin:master Sep 19, 2022
@nielsvanvelzen nielsvanvelzen deleted the mutable-object-adapter branch September 19, 2022 17:14
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.

1 participant