Skip to content

fix: Persist subtitle font weight across app restarts - #1075

Merged
PartyDonut merged 2 commits into
DonutWare:developfrom
Charlie284:fix/subtitle-font-weight-persistence
Aug 9, 2026
Merged

fix: Persist subtitle font weight across app restarts#1075
PartyDonut merged 2 commits into
DonutWare:developfrom
Charlie284:fix/subtitle-font-weight-persistence

Conversation

@Charlie284

Copy link
Copy Markdown
Contributor

Pull Request Description

Persist the selected subtitle font weight across app restarts.

SubtitleSettingsModel stores FontWeight.value (for example, 700 for Bold), but deserialization compared the stored number with the enum index. The restored value therefore fell back to Normal. Deserialization now compares against FontWeight.value, with regression coverage for a Bold serialization round trip.

Issue Being Fixed

Fixes #1072

Screenshots / Recordings

Not applicable. This change only affects settings persistence.

Tested On

  • Android
  • Android TV — Android 14/API 34 ARM64 emulator
  • iOS
  • Linux
  • Windows
  • macOS
  • Web

Checklist

  • No new package was added.
  • All changes are related to the issue at hand.

Testing

  • flutter analyze
  • flutter test test/pip_manager_test.dart test/subtitle_settings_model_test.dart
  • flutter build apk --debug --split-per-abi --flavor production
  • Installed the ARM64 production debug APK on an Android TV 14 emulator
  • Verified fontWeight:700 remained persisted through two cold launches and force-stops

@Charlie284
Charlie284 marked this pull request as ready for review August 1, 2026 22:25

@PartyDonut PartyDonut left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for fixing this.

Removed the test as currently we don't really need/run any tests. Which I probably should add at some point 😓 .

@PartyDonut PartyDonut added the bug Something isn't working label Aug 9, 2026
@PartyDonut
PartyDonut merged commit 05bf94c into DonutWare:develop Aug 9, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this to Done in Fladder Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Subtitle customization setting resets on every startup

2 participants