Repository navigation
fix(tv): drop voice search from the TV search screen - #181
Merged
Merged
Conversation
Removes the mic button beside the search field and the whole voice path: the TvVoiceSearch controller, its RecognizerIntent plumbing and availability probe, the "voice search isn't available" notice, and the button composable. Also removes the LEFT-key interception on the search field. That handler existed only to reach the mic - a read-only text field otherwise swallows Left as caret movement, so the key had to be taken from it deliberately. With no mic to reach it was stealing a key for nothing, so Left now falls through to ordinary focus handling.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe TV search screen removes voice-search integration, microphone controls, related focus navigation, and unavailable-device messaging. The dedicated ChangesTV voice search removal
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Quick104
added a commit
that referenced
this pull request
Aug 17, 2026
Phone: - Mic in the search field launches the system speech recogniser (RecognizerIntent, no RECORD_AUDIO); a spoken query searches immediately, bypassing the debounce without a duplicate request. Manifest declares RECOGNIZE_SPEECH package visibility. - Visible loading state (progress bar + "Searching…") instead of a blank surface; Retry button on errors; keyboard hides on scroll; pill field, tighter spacing, result-count restyle. TV: - Restore voice search (mic left of the field, reached with Left), reverting #181, with an empty-state hint for the route. - IME Search action now hides the keyboard and returns the field to read-only; Down from the read-only field is taken in the preview phase so the chips/results are reachable after a search. - Post-search focus handoff actually runs: the effect was keyed on pendingSearchFocus and cleared it before its first frame await, cancelling itself every time. It no longer waits on the request lookup when library results are already present, and on failure lands on "Try again" ahead of the request row. - Header and "Available to request" no longer double the safe-area inset; the request LazyRow bleeds into the gutter so the focused first card is not clipped. Up from any request card routes to results / Try again / chips, and focusing Try again scrolls the header back into view. Shared: ApiResult.errorMessage() distinguishes timeouts from unreachable servers; TV no longer shows the raw exception + URL. Co-Authored-By: Claude Fable 5 <[email protected]>
3 tasks done
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.
Removes voice search from the TV search screen.
What goes
TvVoiceSearchButtoncomposableTvVoiceSearch.ktentirely — the controller, itsRecognizerIntentplumbing and the availability probevoiceFocusRequester, and itsright/downfocusProperties)The one non-obvious removal
The search field carried a
DirectionLeftkey handler that existed only to reach the mic:A read-only text field swallows Left as caret movement, so the key had to be taken from it deliberately to get focus onto the mic. With no mic to reach, that handler was intercepting a key for nothing, so it goes too — Left now falls through to ordinary focus handling.
Verification
:androidTvApp:compileDebugKotlinAndroidclean (forced rerun, not cached)TvVoiceSearch,voiceSearch,voiceFocusRequesterorIcons.Filled.Micremain anywhere in the repoSummary by CodeRabbit