Restore latest played book into idle Android Auto session #90
Loading…
Reference in a new issue
No description provided.
Delete branch "mcp/issue-88-android-auto-held-resume"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements #88.
/playor starting audio;Never,ArmOnly/Ask, andAutoPlayaudio-start semantics;Safety / lifecycle
A held item is presentation state only. It has a tiny inert app-local WAV media configuration because ExoPlayer creates a MediaSource when an item enters its playlist. The placeholder marker prevents it from being treated as a playable pass-through item.
When Play arrives, BookWave:
A newer Pause, Stop, seek, media replacement or profile change wins over the suspended request.
Verification status
Tests were added/updated for candidate precedence, server fallback, inert holder construction, MediaSource safety, progress-write exclusion, callback reachability and cold-start wiring.
Per owner instruction, no Forgejo CI / Actions workflow has been started for this PR. The repository PR workflow is manual
workflow_dispatch, so opening this PR does not dispatch it automatically.Physical Android Auto acceptance remains required after CI/build verification is explicitly requested.
Closes #88
CI follow-up for PR #90:
Failed run #273 at
728477d22f42dba4da047631f4404aa17fd1eab4exposed 2 ktlint findings, 3 Detekt ReturnCount findings, 1 Android Lint UseKtx error, and 1 Bundle-backed unit-test failure. All were repaired on the branch.Exact-head run #274 at
f9e4c41718d0334b50a15cac80e5d904e8f02cdcis now fully green, includingverifyDebugand the publishedBookWave / PR verificationsuccess status.No additional failure class appeared, so the PR workflow has not been changed as part of #88. The small diagnostics-wording issue observed in failed run #273 is better handled in the CI architecture work (#85) rather than changing this feature PR.
Verification update — exact-head gate is green
Supersedes the earlier PR-body note that CI had not been started.
Current PR head:
f9e4c41718d0334b50a15cac80e5d904e8f02cdcBase:
main@88ae231ddc01897d83e24968bed5443ea861aeddBase freshness: 0 behind; mergeable.
The first manual PR verification exposed formatting/static-policy/lint issues plus one JVM Bundle-fixture mismatch. Those were repaired without changing the intended #88 behavior. The exact repaired head was then verified by Forgejo Actions run #274.
Run #274: PASS
verifyDebug: PASSBookWave / PR verification: successBUILD SUCCESSFUL(1121 actionable tasks)No device/emulator is attached to the Forgejo runner, so this does not claim physical Android Auto/DHU acceptance. The remaining acceptance work is the real-car/DHU matrix from #88: fresh state/server fallback, paused prior book, process/service recreation, reconnect, Never-policy display without autoplay, and explicit Play from the held default item.
No merge performed.