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 not saving comment replies state on config change #10959

Merged

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Apr 10, 2024

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

A @State annotation was missing from CommentRepliesFragment.commentsInfoItem, causing the value to be lost on configuration changes. This caused the NPE described here. This PR just adds the @State. I tested and while I could reproduce consistently before, after this PR I can't reproduce the problem anymore.

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. You can find more info and a video demonstration on this wiki page.

Due diligence

@github-actions github-actions bot added the size/small PRs with less than 50 changed lines label Apr 10, 2024
Copy link

sonarcloud bot commented Apr 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@TobiGr TobiGr added the bug Issue is related to a bug label Apr 10, 2024
@TobiGr TobiGr mentioned this pull request Apr 10, 2024
8 tasks
Copy link
Member

@AudricV AudricV left a comment

Choose a reason for hiding this comment

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

I tested and I can confirm that the issue should be fixed, as I couldn't reproduce it anymore. Thanks!

@AudricV AudricV added the GUI Issue is related to the graphical user interface label Apr 10, 2024
@AudricV AudricV merged commit b3a6318 into TeamNewPipe:release-0.27.0 Apr 10, 2024
7 checks passed
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 size/small PRs with less than 50 changed lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants