Show suggestions everywhere except in password fields

This commit is contained in:
Helium314 2022-03-09 09:42:24 +01:00 committed by GitHub
parent cd267b5089
commit a5c45318a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,12 +105,12 @@ public final class InputAttributes {
// TODO: Have a helper method in InputTypeUtils // TODO: Have a helper method in InputTypeUtils
// Make sure that passwords are not displayed in {@link SuggestionStripView}. // Make sure that passwords are not displayed in {@link SuggestionStripView}.
final boolean shouldSuppressSuggestions = mIsPasswordField final boolean shouldSuppressSuggestions = mIsPasswordField;
//|| InputTypeUtils.isEmailVariation(variation) //|| InputTypeUtils.isEmailVariation(variation)
//|| InputType.TYPE_TEXT_VARIATION_URI == variation //|| InputType.TYPE_TEXT_VARIATION_URI == variation
//|| InputType.TYPE_TEXT_VARIATION_FILTER == variation //|| InputType.TYPE_TEXT_VARIATION_FILTER == variation
//|| flagNoSuggestions //|| flagNoSuggestions
|| flagAutoComplete; //|| flagAutoComplete;
mShouldShowSuggestions = !shouldSuppressSuggestions; mShouldShowSuggestions = !shouldSuppressSuggestions;
mShouldInsertSpacesAutomatically = InputTypeUtils.isAutoSpaceFriendlyType(inputType); mShouldInsertSpacesAutomatically = InputTypeUtils.isAutoSpaceFriendlyType(inputType);