-
Notifications
You must be signed in to change notification settings - Fork 6k
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 autofill for android #40771
Fix autofill for android #40771
Conversation
@@ -92,6 +92,15 @@ public void attachToFlutterEngine_alertsPlatformViews() { | |||
verify(platformViewsController, times(1)).attachToView(flutterView); | |||
} | |||
|
|||
@Test | |||
public void flutterView_importantForAutofillDoesNotExcludeDescendants() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to test not that the value is set but instead that a child view can have autofill?
This feels a bit like a change detector test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test need to indicate that it should only run for android o and above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to test not that the value is set but instead that a child view can have autofill?
This feels a bit like a change detector test.
I wasn't able to find a way to test if child views receive autofills automatically. I tried to manually call autofill with no luck. And the documentation only provides an example to test it manually: https://developer.android.com/guide/topics/text/autofill-optimize.
Does this test need to indicate that it should only run for android o and above?
I believe the method is only callable on versions O and above. Without the version check, we would get lint warnings that the method would cause crashes on lower versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bparrishMines approved independent of a different method of testing.
Fix autofill for android
Fixes flutter/flutter#92165.
Temporary fix for plugin: flutter/packages#3588
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.