Repository navigation
fix(tv): drop the on-screen mic from Android TV search - #286
Conversation
Codex Review SummaryThis 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. |
The search page carried a separate mic button beside the field, a sentence of copy explaining how to reach it, and Left-key routing to make that reachable. Gboard on Android TV already puts a mic key on the keyboard that listens through the remote, so this was a second route to the same thing and it pushed the field off the page gutter. Remove the voice controller, the button, the hint, the Left-key handling, and the speech-recognition manifest query. The field now starts at the gutter in line with the chips and result cards. Co-Authored-By: Claude Fable 5.1 <[email protected]>
1f1cd29 to
d48ac72
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f1cd29ab9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // Voice is the system keyboard's job: Gboard on Android TV puts a mic | ||
| // key on the keyboard itself, which listens through the remote. A | ||
| // separate on-screen mic only added a second route to the same thing | ||
| // and a sentence of copy to explain it. |
There was a problem hiding this comment.
Delete the orphaned voice-search implementation
Remove TvVoiceSearch.kt along with this UI path. A repo-wide search shows that this change removes the only callers of rememberTvVoiceSearch and TvVoiceSearchController, but the 190-line production implementation remains compiled and its documentation still claims that an on-screen affordance is required; moreover, its availability check now lacks the manifest <queries> declaration it requires. Leaving this contradictory, unusable implementation behind makes the voice-search removal incomplete and risks future callers reviving a path that always reports unavailable on modern Android.
Useful? React with 👍 / 👎.
…file Codex review on #285: the audiobook player fed the Material background role into its gradient, so the charcoal canvas leaked into a player surface that iOS keeps black. Pass SiloBackground there. The TvVoiceSearch.kt deletion belonged to #286 and was staged here by mistake; restored from main. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* fix(ui): match the iOS charcoal page canvas on Android phone iOS moved every signed-in phone surface off pure black onto a fixed #111111 canvas and stopped Home from recolouring itself from Continue Watching artwork (silo-apple PR #222). Android still painted black everywhere and tinted Home from the centred card. Material background is now SiloPageBackground (#111111). SiloBackground stays black for ink roles and the player. Home sits on the fixed canvas with the dominant-colour sampling removed. Window background matches so cold launch does not flash a different grey. Settings keeps its own lifted ground, as on iOS. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(ui): keep the audiobook player on black and restore the TV voice file Codex review on #285: the audiobook player fed the Material background role into its gradient, so the charcoal canvas leaked into a player surface that iOS keeps black. Pass SiloBackground there. The TvVoiceSearch.kt deletion belonged to #286 and was staged here by mistake; restored from main. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
* feat(tv): bring back the voice search button on Android TV search TV users could only search by voice through a keyboard mic key, so anyone whose TV keyboard lacks one had no voice search in Silo. The remote's own mic button goes to the system assistant before any app sees it, so an on-screen button is the only entry point an app can offer. Restore the mic removed in #286, recogniser selection included, and place it right of the field so the field stays on the page gutter. Right walks field, mic, clear; the mic is hidden when no recogniser is installed. Silo hands listening to the system recogniser and still needs no RECORD_AUDIO. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tv): don't restart a request search already running for a voice query A spoken query is set and submitted at once, so the query-change effect started while that request search was in flight and, past its 300 ms delay, cancelled and restarted it. Treat a search loading for the same query and media type as answered. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Problem
The Android TV search page carried a separate mic button beside the field, a sentence of copy in the empty state explaining how to reach it ("Press left from the search box to search by voice"), and Left-key routing to make that reachable. Gboard on Android TV already puts a mic key on the keyboard that listens through the remote, so this was a second route to the same thing. It also pushed the field off the page gutter so nothing lined up with the logo, chips, or result cards.
Solution
TvVoiceSearch.kt, theTvVoiceSearchButtoncomposable, the voice-unavailable message, and the Left-key focus routing on the field. Down-key routing to the chips is kept.RECOGNIZE_SPEECH<queries>block from the TV manifest. It existed only for the availability check.The empty state is still a headline and one line. Recent searches or popular rows would need view model and server work and are out of scope here.
Before / after
Screenshots to follow as attachments (SiloTV emulator).
Validation
:androidTvApp:assembleDebugclean.:androidTvApp:testDebugUnitTestforui.screens.search.*passes.Risks
Low. Removes code paths only. Voice input now depends on the device keyboard offering a mic key, which Gboard on the Google TV Streamer and Shield does.
AI disclosure
Written with Claude Code (claude-fable-5-1) in the Claude desktop app.
🤖 Generated with Claude Code