Skip to content

feat(player): long-press gesture as Chapter / 2x Speed / Disabled#50

Merged
midasvo merged 1 commit into
mainfrom
feat/hold-gesture-options
Jun 23, 2026
Merged

feat(player): long-press gesture as Chapter / 2x Speed / Disabled#50
midasvo merged 1 commit into
mainfrom
feat/hold-gesture-options

Conversation

@midasvo

@midasvo midasvo commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Turns the player long-press (hold) gesture from a boolean "chapter skip" toggle into a select: Skip chapter / 2x speed / Disabled. This lets users turn the hold gesture off entirely and makes the setting's purpose clearer.

Closes #49.

Attribution

Inspired by upstream PR jarnedemeulemeester/findroid#1119 by @Rdkang. Implemented cleanly rather than cherry-picked (the upstream branch is 10 commits with internal merges, and stores translated display text as the persisted value).

What's different from the upstream PR (cleanliness)

  • Stable persisted values — uses our PreferenceSelect idiom with a separate display array (player_gestures_hold) and a stable values array (player_gestures_hold_valueschapter/speed/disabled), instead of persisting English UI text like "2x Speed". Localization-safe and robust to label changes.
  • No dead returnPlayerGestureHelper uses a when that simply has no branch for disabled.
  • Default chapter — preserves the previous default behavior (hold = skip chapter). The upstream PR changed the default to Disabled; flag if you'd prefer that.
  • Removed the now-unused player_gestures_chapter_skip strings across all 25 locales.

Testing

  • :app:phone:compileLibreDebugKotlin

Replaces the boolean chapter-skip toggle with a PreferenceSelect offering
Skip chapter / 2x speed / Disabled, so the hold gesture can be turned off and
its purpose is clearer.

Implemented cleanly (not cherry-picked) from upstream PR
jarnedemeulemeester#1119 by Rdkang: instead of storing translated
display text as the persisted value, use our PreferenceSelect idiom with a
separate display array and stable values (chapter/speed/disabled). Default is
"chapter" to preserve the previous default behavior. Removed the now-unused
player_gestures_chapter_skip strings across all locales.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@midasvo midasvo merged commit 9849d91 into main Jun 23, 2026
3 checks passed
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.

Make the player long-press gesture a Chapter / 2x Speed / Disabled choice

1 participant