Don't send action suggestion when user starts typing

* the behavior was changed in ag/11362916 causing it to be
  inconsistent with the dropdown UI.

Test: atest android.autofillservice.cts.inline
Bug: 156667581

Change-Id: I29b5a2cdfacdeda2d36a488c64e745ea795b01f9
This commit is contained in:
Feng Cao
2020-05-21 16:32:44 -07:00
parent 523dca0729
commit 2e933f474a

View File

@@ -259,7 +259,7 @@ public final class InlineFillUi {
final AutofillValue value = dataset.getFieldValues().get(fieldIndex);
if (value == null || !value.isText()) {
return dataset.getAuthentication() != null;
return dataset.getAuthentication() == null;
}
final String valueText = value.getTextValue().toString().toLowerCase();
return valueText.toLowerCase().startsWith(constraintLowerCase);