Skip to content

Record the skip-back amount for skip-back in playback history - #1205

Merged
r0adkll merged 1 commit into
mainfrom
fix/seek-back-history-amount
Oct 6, 2026
Merged

r0adkll merged 1 commit into
mainfrom
fix/seek-back-history-amount

Conversation

@r0adkll

@r0adkll r0adkll commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Found while testing #607. On Android, playback history recorded every skip back as moving back by the skip-forward time, so the recorded target position was wrong whenever the two skip times differ (for example, forward 30s and back 10s).

What changed

  • PlaybackHistoryForwardingPlayer.seekBack() records the back amount (backwardTimeMs) instead of the forward amount.
  • A changelog entry under Fixed.

Verification

  • ./scripts/ktlint --check passes and :infra:audioplayer:impl:compileAndroidMain compiles.
  • The same fix was part of the closed Read settings without blocking at every call site #1196, and its playback tests passed there. It isn't covered by a unit test because the forwarding players are Android-only and have no test harness.

🤖 Generated with Claude Code

PlaybackHistoryForwardingPlayer recorded a skip back as moving back by the
skip-forward time, so the history showed the wrong target position
whenever the two times differ.
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Messages
📖 This PR has been checked by Danger

Generated by 🚫 Danger Kotlin against 2fc8fe1

@Rotom-Bot

Copy link
Copy Markdown
Collaborator

Code Coverage

Total Project Coverage 23.49% ❌

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Android APK @ a3d3710

@r0adkll
r0adkll merged commit 57518f1 into main Oct 6, 2026
7 checks passed
@r0adkll
r0adkll deleted the fix/seek-back-history-amount branch October 6, 2026 19:53
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