Skip to content

Announce locked poll settings to screen readers - #2056

Open
mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-poll-create-locked-switches-silent
Open

mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-poll-create-locked-switches-silent

Conversation

@mehranlatifi83

@mehranlatifi83 mehranlatifi83 commented Sep 4, 2026 •

Copy link
Copy Markdown

Problem

Some poll settings are locked in certain cases: "Allow adding options" cannot be turned on for a quiz or a poll with visible votes, and a quiz opened as a quiz stays a quiz. These switches are not disabled; they only show a small lock icon, and pressing them does nothing. TalkBack reads them as normal switches, and toggling them silently fails.

Fix

In PollCreateCheckCell, when a setting is locked, report it as disabled and add the reason (what has to change first) to its description. Nothing changes visually.

Testing

With TalkBack on, create a poll, turn on Quiz, then swipe onto "Allow adding options".

Before: a normal switch that did nothing when toggled. After: it is read as disabled, with the reason.

@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-poll-create-locked-switches-silent branch from 459e59a to 7e50578 Compare September 18, 2026 09:50
Two of the settings are fixed at times: a poll may not take suggested
options while it is a quiz or while it shows who voted, and a poll opened
as a quiz stays one. Neither is disabled; each is marked with a small
padlock drawn on its switch, and a press on it quietly does nothing.

A screen reader is told none of that. It offers a switch, says whether it
is on, and turning it does nothing, over and over, with no reason given.

Say the setting is disabled, and say what would have to change first.
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-poll-create-locked-switches-silent branch 2 times, most recently from 64cdad5 to 0f84aa6 Compare October 1, 2026 23:01
@mehranlatifi83 mehranlatifi83 changed the title Say when a setting of a poll cannot be changed Oct 1, 2026
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-poll-create-locked-switches-silent branch from 0f84aa6 to af143ce Compare October 13, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant