Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Aug 4, 2021

framework part: flutter/flutter#87684

issue flutter/flutter#86577

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@google-cla google-cla bot added the cla: yes label Aug 4, 2021
@chunhtai chunhtai force-pushed the issues/86577 branch 2 times, most recently from 9b66963 to d4155eb Compare August 9, 2021 20:30
@chunhtai chunhtai requested review from blasten and goderbauer August 9, 2021 20:39
@chunhtai
Copy link
Contributor Author

chunhtai commented Aug 9, 2021

cc @yjbanov for web
cc @abrush21 for fuchsia change

if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
if (semanticsNode.tooltip != null) {
content = content != null ? content : "";
content = content + "\n" + semanticsNode.tooltip;
Copy link

Choose a reason for hiding this comment

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

comment about why a new line and the intended behavior would be appreciated.

Is it possible to test this logic?

}
}

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
Copy link

Choose a reason for hiding this comment

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

what is the intended behavior below this version? The code in L832 required !semanticsNode.hasFlag(Flag.SCOPES_ROUTE), is it always true in API level < Build.VERSION_CODES.P.

If not, why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SCOPES_ROUTE doesn't need content description because it is not a11y focusable. This is already the case before the change.

Copy link
Contributor Author

@chunhtai chunhtai Aug 13, 2021

Choose a reason for hiding this comment

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

and unfortunately, I don't know how to set up test to be run in older API level. It complains about missing binary if i set the config in Robolectric test.

Copy link

Choose a reason for hiding this comment

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

could we add comments? Sorry, I think this will help the next person trying to contribute :)

Imagine that someone jumps into this code for this first time, and that person is trying to make sense of each case, etc...

@chunhtai
Copy link
Contributor Author

The build is failing because it needs a three way transition to roll into flutter, will do that once both engine and framework change is approved

@blasten I either replied to the comment or resolved them, PTAL

CharSequence content = semanticsNode.getValueLabelHint();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
if (semanticsNode.tooltip != null) {
// For backward compatibility, the tooltip is appended
Copy link

Choose a reason for hiding this comment

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

backward compatibility with which API level, or with Flutter SDK?

@chunhtai
Copy link
Contributor Author

@blasten PTAL :)

@chunhtai chunhtai requested a review from blasten August 16, 2021 22:58
Copy link

@blasten blasten left a comment

Choose a reason for hiding this comment

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

LGTM

@chunhtai chunhtai added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Aug 18, 2021
@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Linux Web Framework tests has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Windows Host Engine has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot removed the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Aug 18, 2021
@chunhtai chunhtai added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Aug 18, 2021
@fluttergithubbot fluttergithubbot merged commit 14e27f9 into flutter:master Aug 18, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 18, 2021
zanderso added a commit that referenced this pull request Aug 19, 2021
zanderso added a commit that referenced this pull request Aug 19, 2021
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Aug 23, 2021
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Aug 23, 2021
filmil pushed a commit to filmil/engine that referenced this pull request Apr 21, 2022
filmil pushed a commit to filmil/engine that referenced this pull request Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes embedder Related to the embedder API platform-android platform-fuchsia waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants