mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-19 08:20:15 +00:00
simplify setting mShouldShowSuggestions, heed flagNoSuggestions
This commit is contained in:
parent
a5c45318a7
commit
66967eb2a1
1 changed files with 1 additions and 7 deletions
|
@ -105,13 +105,7 @@ public final class InputAttributes {
|
|||
|
||||
// TODO: Have a helper method in InputTypeUtils
|
||||
// Make sure that passwords are not displayed in {@link SuggestionStripView}.
|
||||
final boolean shouldSuppressSuggestions = mIsPasswordField;
|
||||
//|| InputTypeUtils.isEmailVariation(variation)
|
||||
//|| InputType.TYPE_TEXT_VARIATION_URI == variation
|
||||
//|| InputType.TYPE_TEXT_VARIATION_FILTER == variation
|
||||
//|| flagNoSuggestions
|
||||
//|| flagAutoComplete;
|
||||
mShouldShowSuggestions = !shouldSuppressSuggestions;
|
||||
mShouldShowSuggestions = !(mIsPasswordField || flagNoSuggestions);
|
||||
|
||||
mShouldInsertSpacesAutomatically = InputTypeUtils.isAutoSpaceFriendlyType(inputType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue