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 settings not persisting #707

Merged
merged 3 commits into from
Dec 23, 2024
Merged

Conversation

Zerwin
Copy link
Contributor

@Zerwin Zerwin commented Dec 19, 2024

Changes

Fixes the BTTV settings not persisting if changed. It was caused because of a changed number in Switch.java in one of the previous commits. This somehow causes the Event Name to be null for ToggleMenuModel's, which breaks persisting the changes.
I changed the number back and also added an additional check for null values in SettingsPresenter (plus a slight change to the binding of the header to the MenuSection).

This fix might be worth a release ? Seeing as all the toggles in the BTTV settings menu are affected by this.

Checklist

  • My change builds
  • I tested my change
  • I license my changes according to the MIT License.

The 0b11011111110100 in Switch.java was changed in one of the previous commits. This somehow causes the Event Name to be null for ToggleMenuModel's, which breaks persisting the changes.
@Zerwin Zerwin mentioned this pull request Dec 22, 2024
2 tasks
Copy link
Member

@FoseFx FoseFx left a comment

Choose a reason for hiding this comment

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

Appreciate your help!

@FoseFx FoseFx merged commit 83a328a into bttv-android:master Dec 23, 2024
2 of 3 checks passed
@Zerwin Zerwin deleted the fix/settings branch December 23, 2024 21:36
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