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: ResettableLazyManager not being reset on changing instances. #5480

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

RafaelsRamos
Copy link
Contributor

Issue

  • When an instance is changed on InstanceSettings.kt, the function instancePref.setOnPreferenceChangeListener is not being invoked, despite assignment preference.value = selectedInstance on L192. This results on ResettableLazyManager not being reset, leading to the API not being reloaded, to take into account the new instance selected.

Issue replication

replication.mp4

What does this PR do?

  • Ensure ResettableLazyManager is reset when a new instance is selected. (Please validate my approach)

Showcase

fixed.mp4

Please let me know if you see a better approach to fixing the issue.

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks!

@Bnyro Bnyro merged commit 01c7a94 into libre-tube:master Jan 11, 2024
3 of 4 checks passed
@RafaelsRamos RafaelsRamos deleted the fix/instance_reload branch January 22, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants