Wholphin/app/src/main
Justin Caveda ed67e5575f
Add "Only Forced Subtitles" option to subtitle selection (#589)
## Description

Adds a client-side "Only Forced Subtitles" option when selecting
subtitles, per the discussion in #571.

  ### Changes

  - **TrackIndex.ONLY_FORCED** (`-3`): New constant for the special case
- **StreamChoiceService**: Intercepts `ONLY_FORCED` at the top of
`chooseSubtitleStream()` before server-side `SubtitlePlaybackMode` logic
(which remains untouched)
  - **UI**: Adds "Only Forced Subtitles" option to both:
    - In-player subtitle menu (`PlaybackDialog.kt`)
    - Pre-playback stream selection dialog (`Dialogs.kt`)

  ### Forced track detection

Uses metadata `isForced` flag as primary check, with title-based
fallback ("forced", "signs", "songs" patterns) when language matches
audio.

  ### Related issues

  Closes #571

  ### Screenshots

  N/A - subtitle selection menu only

  ### AI/LLM usage

  Used Claude Code for assistance and to draft PR description.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Damontecres <damontecres@gmail.com>
2026-01-11 13:11:39 -05:00
..
assets Add experimental MPV player backend (#161) 2025-11-16 18:46:25 -05:00
java/com/github/damontecres/wholphin Add "Only Forced Subtitles" option to subtitle selection (#589) 2026-01-11 13:11:39 -05:00
jni Update MPV playback threading model (#481) 2025-12-17 18:24:25 -05:00
proto Support resolution switching (#597) 2025-12-31 17:11:30 -05:00
res Add "Only Forced Subtitles" option to subtitle selection (#589) 2026-01-11 13:11:39 -05:00
AndroidManifest.xml Support resolution switching (#597) 2025-12-31 17:11:30 -05:00
ic_launcher-playstore.png Add icons 2025-10-12 17:41:54 -04:00