mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-19 16:30:19 +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
|
// 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;
|
mShouldShowSuggestions = !(mIsPasswordField || flagNoSuggestions);
|
||||||
//|| InputTypeUtils.isEmailVariation(variation)
|
|
||||||
//|| InputType.TYPE_TEXT_VARIATION_URI == variation
|
|
||||||
//|| InputType.TYPE_TEXT_VARIATION_FILTER == variation
|
|
||||||
//|| flagNoSuggestions
|
|
||||||
//|| flagAutoComplete;
|
|
||||||
mShouldShowSuggestions = !shouldSuppressSuggestions;
|
|
||||||
|
|
||||||
mShouldInsertSpacesAutomatically = InputTypeUtils.isAutoSpaceFriendlyType(inputType);
|
mShouldInsertSpacesAutomatically = InputTypeUtils.isAutoSpaceFriendlyType(inputType);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue