summaryrefslogtreecommitdiff
path: root/services/autofill
diff options
context:
space:
mode:
authorFeng Cao <fengcao@google.com>2020-05-21 16:32:44 -0700
committerFeng Cao <fengcao@google.com>2020-05-21 16:32:49 -0700
commit2e933f474ad5391fc4e96120cc00c9cc315a85a2 (patch)
treed23d65b8fce80933093108d4c0659ac3c2165315 /services/autofill
parent523dca0729e243849906d4a4b2fc1756ff4c8dda (diff)
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
Diffstat (limited to 'services/autofill')
-rw-r--r--services/autofill/java/com/android/server/autofill/ui/InlineFillUi.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/autofill/java/com/android/server/autofill/ui/InlineFillUi.java b/services/autofill/java/com/android/server/autofill/ui/InlineFillUi.java
index 652252220c1a..2713a01ff3d1 100644
--- a/services/autofill/java/com/android/server/autofill/ui/InlineFillUi.java
+++ b/services/autofill/java/com/android/server/autofill/ui/InlineFillUi.java
@@ -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);