Repository navigation
Conversation
TvSwitchRow drew its on/off state only through colors and thumb position, so TalkBack read the row's title and subtitle but never whether the switch was on. Give the row the Switch role and its toggleable state. The Surface still handles the click, so select toggles once and focus and visuals are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 54 minutes. View limit details
|
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. |
|
The new Switch-role and on/off announcement is not demonstrated live; the PR explains that the emulator lacked TalkBack. For Android TV, add a short recording of the profile row being focused and toggled with TalkBack, or leave this evidence gap for reviewer consideration. The evidence page should show the Android TV profile row and its off/on announcements. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Problem
On Android TV, TalkBack reads switch rows in the profile form (Child Profile in Add a profile and Edit profile) by title and subtitle, but never says whether the switch is on or off.
TvSwitchRowinTvProfileForm.ktshows the state only through the track color and thumb position. The row's accessibility node has no switch role and no checked state, so the tree reads"Child Profile, Fills in kid-friendly limits below"whichever way the switch is set.Related issue: N/A (found in review of #610, which adds a second
TvSwitchRowwith the same gap).Solution
Add
role = Role.SwitchandtoggleableState = ToggleableState(isOn)semantics to the modifier passed to the row'sSurface. TheSurfacestill owns the click, so D-pad select toggles once, and focus and visuals don't change. EveryTvSwitchRow, including the one #610 adds, picks this up.Validation
bbbfdeeb5and on this branch, via profile menu → Add Profile → Child Profile row.[unchecked], then[checked]after one select, then[unchecked]after a second. Each press flips it exactly once.Role.Switch. The checked state was confirmed in the tree../gradlew :androidTvApp:assembleDebugpasses. No test added; this is a UI change, per AGENTS.md.Validation tasks: none
Evidence: https://evidence.siloserver.org/r/silo-android/tv-switch-row-semantics/
Risks
Low. The change adds semantics only. If
tv-material'sSurfacesets its own role, the outer modifier'sRole.Switchtakes precedence on the same node.Other clients
Other clients: Apple N/A (SwiftUI
Togglereports its state natively); Roku N/A (ProfileFormRowalready speaks On/Off in its audio text); Web N/A (no TV client, no shared component). The Android phone form uses MaterialSwitchand is unaffected.User manual: unaffected (accessibility fix, no setting or screen change).
Council review
Ran as a follow-up of the #610 review: no plan round (small fix, one file), and one background reviewer.
Rounds: 1, last reviewed 062cd6c
Visual review: skipped, since base and branch captures are pixel-identical.
AI Disclosure
🤖 Generated with Claude Code