Skip to content

[Android][A11y] AccessibilityBridge misuses setHeading #174150

@chunhtai

Description

@chunhtai

result.setHeading(semanticsNode.hasFlag(Flag.IS_HEADER));

Right now the accessibility bridge translates isHeader into setHeading. This is not true according to Android team's response https://yaqs.corp.google.com/eng/q/1302440792333221888#a1n1 (internal only).

The correct way to use it is to setHeading when the semanticsnode has non-zero headingLevel

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listgood first issueRelatively approachable for first-time contributorsteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions