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

Remove use of the deprecated AccessibilityNodeInfo boundsInParent API #10773

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

jason-simmons
Copy link
Member

No description provided.

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

What is the alternative?

Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

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

LGTM

What is the alternative?

getBoundsInScreen, looks like we're already using it below. https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#getBoundsInParent(android.graphics.Rect)

@jason-simmons jason-simmons merged commit d9bbe37 into flutter:master Aug 8, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 9, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Aug 9, 2019
[email protected]:flutter/engine.git/compare/d784a39ab8ce...d9bbe37

git log d784a39..d9bbe37 --no-merges --oneline
2019-08-08 [email protected] Remove use of the deprecated AccessibilityNodeInfo boundsInParent API (flutter/engine#10773)
2019-08-08 [email protected] Manually roll Skia to pull in iOS armv7 build failure fix. (flutter/engine#10777)
2019-08-08 [email protected] Manual roll of Fuchsia clang/linux-amd64 toolchain (flutter/engine#10774)
2019-08-08 [email protected] Roll src/third_party/skia 19e3cd4c9cd5..4acbab33bd40 (6 commits) (flutter/engine#10769)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff ([email protected]), and stop
the roller if necessary.
@amirh
Copy link
Contributor

amirh commented Feb 4, 2020

This broke webview a11y.
boundsInParent and boundsInScreen are kept in different members of AccessibilityNodeInfo, as the code here copies a node we can't just ignore boundsInParent, as the node we're copying may have set that.

We may try to translate boundsInParent to a boundsInScreen, but it scares me a bit, specifically as we'll have to replicate whatever logic Android has to deal with ambiguity between these two. I think the right thing to do here is to keep using the deprecated methods and silence the warnings.

@mklim @jason-simmons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants