Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix accessibility overlay drawing in root view instead of window manager #1694

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

geoff-powell
Copy link
Collaborator

When debugging #1693 issue I noticed the WindowManagerImpl view can have different sizes based on the window rendered. This caused issues with AccessibilityRenderExtension where overlay foreground drawable wasn't rendering in the correct place.

The fix is to render the content overtop the ComposeViewAdapter which is the root view that gets rendered by paparazzi instead.

Copy link
Collaborator

@jrodbx jrodbx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@geoff-powell geoff-powell force-pushed the gpowell/fix-accessbility-overlay branch from b84b39b to 7cd46e2 Compare November 15, 2024 18:57
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this looks like a strange snapshot but this is due to an animation used with DropDown.

Should be fix once animation timing can be controlled in Compose #678 #1693

Copy link
Contributor

@colinmarsch colinmarsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious why this changed the accessibility snapshot images? It looks like there are some slight pixel differences

@geoff-powell
Copy link
Collaborator Author

Just curious why this changed the accessibility snapshot images? It looks like there are some slight pixel differences

ya, the pixel diff is most likely due to the window manager change.

@geoff-powell geoff-powell merged commit a984ebc into master Nov 15, 2024
14 checks passed
@geoff-powell geoff-powell deleted the gpowell/fix-accessbility-overlay branch November 15, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants