Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Fix enableSuggestions set to false not honored (flutter#46037)
## Description This PR fixes an issue where setting `TextField.enableSuggestions` to false was not honored on Android. Several Android devices (Samsung) and/or IMEs (including GBoard) does not disabled suggestions when `InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS `flag is set. The common solution is to rely on the following flag: ~~`InputType.TYPE_TEXT_VARIATION_PASSWORD`~~ `InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD`. Reference: - https://issuetracker.google.com/issues/36934423#comment4 - https://stackoverflow.com/questions/33148168/inputtype-type-text-flag-no-suggestions-in-samsung/33227237#33227237 - Existing comment on the codebase: https://github.com/flutter/engine/blob/53430c7c96a3ef1fc78d63ea6b0c35e5ff46c45e/shell/platform/android/io/flutter/plugin/editing/TextInputPlugin.java#L270 ## Related Issue Fixes flutter/flutter#71679. ## Tests Adds 1 test.
- Loading branch information