mirror of
https://github.com/GrakovNe/lissen-android.git
synced 2026-08-03 03:52:48 -04:00
Two issues prevented the head unit seek controls from working: 1. Books started from the Android Auto browse screen never populated MediaRepository's playingBook state, which is only set by the phone UI flow. Since rewind/forward/previousTrack/nextTrack all bail out silently on a null playingBook, every seek button on the head unit was a no-op while pause kept working (it bypasses MediaRepository). onSetMediaItems now registers the fetched book with MediaRepository. 2. The rewind/forward buttons were assigned to SLOT_OVERFLOW, leaving the primary back/forward slots to chapter navigation. Swapped so the configurable rewind/forward occupy the primary slots, matching audiobook app conventions, with chapter navigation in the overflow. Verified end-to-end on the Desktop Head Unit: commands confirmed arriving via logcat and seeks now applied for books started from the car screen. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>