Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e933f47 authored by Feng Cao's avatar Feng Cao
Browse files

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
parent 523dca07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);