Skip to content

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

Open
Charlie284 wants to merge 1 commit into
DonutWare:developfrom
Charlie284:fix/subtitle-font-weight-persistence
Open

fix: Persist subtitle font weight across app restarts#1075
Charlie284 wants to merge 1 commit into
DonutWare:developfrom
Charlie284:fix/subtitle-font-weight-persistence

Conversation

@Charlie284

Copy link
Copy Markdown

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
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.

Subtitle customization setting resets on every startup

1 participant