Skip to content

AccessibilityBridge in Android needs to use BreakIterator instead of relying on regex for predicting cursor movements #175623

@ash2moon

Description

@ash2moon

Currently in the AccessibilityBridge we have some fragile hardcoded regexes that try to predict where the cursor should land next (see example).

Instead of relying on regex we should use BreakIterator so we do not have to maintain this code. For example, from JDK 19, a breaking change was introduced that resulted in having to skip the itCanPredictCursorMovementsWithGranularityWordUnicode test due to a change in how unicode characters were handled in word breaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions