summaryrefslogtreecommitdiff
path: root/services/autofill/java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-06-17 19:49:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-17 19:49:13 +0000
commit79f38179de0f08c97b589dd59fe155fd0d5efe8b (patch)
tree7870721cd7c574ee6ae777ea0b98d1944e5b7827 /services/autofill/java
parentdf38e692a589f65e362d21394afb76a417955ee8 (diff)
parent5d6243e47a699d75309e0fe56549f3553e409228 (diff)
Merge "Fix a bug to not complete the augmented autofill request when fill window is shown" into rvc-dev
Diffstat (limited to 'services/autofill/java')
-rw-r--r--services/autofill/java/com/android/server/autofill/RemoteAugmentedAutofillService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/autofill/java/com/android/server/autofill/RemoteAugmentedAutofillService.java b/services/autofill/java/com/android/server/autofill/RemoteAugmentedAutofillService.java
index 4e0970f1e40b..11f901538868 100644
--- a/services/autofill/java/com/android/server/autofill/RemoteAugmentedAutofillService.java
+++ b/services/autofill/java/com/android/server/autofill/RemoteAugmentedAutofillService.java
@@ -167,14 +167,16 @@ final class RemoteAugmentedAutofillService
new IFillCallback.Stub() {
@Override
public void onSuccess(@Nullable List<Dataset> inlineSuggestionsData,
- @Nullable Bundle clientState) {
+ @Nullable Bundle clientState, boolean showingFillWindow) {
mCallbacks.resetLastResponse();
maybeRequestShowInlineSuggestions(sessionId,
inlineSuggestionsRequest, inlineSuggestionsData,
clientState, focusedId, focusedValue,
inlineSuggestionsCallback,
client, onErrorCallback, remoteRenderService);
- requestAutofill.complete(null);
+ if (!showingFillWindow) {
+ requestAutofill.complete(null);
+ }
}
@Override