Repository navigation
fix(tv): let Left and Right seek while a skip pill has focus - #928
Merged
Merged
Conversation
With the player controls up, the remote bridge leaves Left and Right to Compose focus navigation, and only the scrubber turns them into seeks. The Skip Intro and Skip Recap/Credits pills sit outside the controls and take focus as they appear (or by Up from the scrubber), so Left and Right on them did nothing. When a focused pill then timed out or left its range, focus was stranded and the remote stayed dead while the controls were up. Left and Right on a focused pill now seek as they do with the controls hidden: a tap skips by the seek interval and a hold starts the hold seek. The pill keeps focus while it stays up, and a pill that hides while focused hands focus to the scrubber (or the player root with the controls hidden), reusing the buffering pill's hand-off. Closes #926 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #926
Validation tasks: unblocks #322 C2, unblocks #322 C3
Other clients: Apple Silo-Server/silo-apple#1175 (merged fix for Silo-Server/silo-apple#1172); Roku Silo-Server/silo-roku#80; Web N/A (its skip buttons aren't reached with a D-pad)
On Android TV, while the player controls are showing, the remote's Left and Right stop seeking once a skip pill has focus. The Skip Intro pill takes focus when it appears, and Skip Recap and Skip Credits can be reached with Up from the scrubber. The pills have no Left/Right handling, so those presses did nothing.
It got worse when a focused pill went away, after its 5-second offer ran out or once the playhead left the marker. Focus went nowhere, and every press kept the controls up without seeking.
The common way in: with the controls hidden, a Right that lands inside the intro brings the controls up, Skip Intro appears and takes focus, and the next Left or Right is dead.
Approach
Left and Right on a focused skip pill now seek as they do with the controls hidden, matching the Apple TV fix:
overlaySkip, hoisted from its tap callbacks);beginCleanPlaybackSeek), which Select commits and Back cancels.The pill handles the keys itself (
TvIntroPromptPill, shared by both pills). It classifies the press as the remote bridge does: a release before the first repeat is a tap, and the first repeat starts a hold. With the controls hidden the bridge still takes Left and Right before Compose, so each press has one owner.Focus stays on the pill while it is up, and Select still skips the marker. When a focused pill hides, focus goes to the scrubber, or to the player root with the controls hidden. This reuses the buffering pill's hand-off (
refocusAfterPillHides), tracked per pill because the intro pill can hand straight over to the recap or credits pill. The hand-off doesn't act while the HUD or Up Next is open, since they own focus.While the picture is loading or failed, Left and Right on a pill do nothing, as the bridge does in those states. That keeps a press from moving Retry's resume point.
Android TV only: the change is in
androidTvApp.Validation
On an Android TV emulator (API 36, 1080p) against a Silo dev deployment (server 436f0fb9), with a manual intro marker at 0:40–3:20 and a recap marker at 0:00–2:00 on another episode:
main(73e55b9) no tap seeked (0:42 → 1:01, normal playback), and after the pill timed out nothing had focus. On this branch (b8fb3e0) every tap seeked (0:43 → 3:57); the pill timed out after the first tap and focus moved to the scrubber.mainthe first tap landed at 1:02, Skip Intro took focus, and the next four did nothing. On this branch all five seeked (0:32 → 3:02), with Skip Intro keeping focus inside the intro../gradlew :androidTvApp:assembleDebugpasses, and./gradlew :androidTvApp:testDebugUnitTestpasses (1397 tests). No test was added: the change is key and focus wiring in composables, and the live before and after runs are the proof.Evidence: https://evidence.siloserver.org/r/silo-android/issue-926/
Devices: Android TV only. The phone and tablet player has no skip pill focus or D-pad seeking, so phone, tablet and foldable are unaffected.
Risks
AI Disclosure
🤖 Generated with Claude Code