diff options
author | Adam He <adamhe@google.com> | 2020-06-19 12:30:41 -0700 |
---|---|---|
committer | Adam He <adamhe@google.com> | 2020-06-22 11:22:45 -0700 |
commit | c71f42e751f57131dc5fb82159cf73c228cb286e (patch) | |
tree | ec752ee45cbe6d75c18a009a980bf3d6dd8c25c8 | |
parent | 59804dccba4c8da96856e06d1121f07b51391d2c (diff) |
Add call to send empty suggestions to IME on cancelling augmented
autofill.
Bug: 159472108
Test: atest InlineLoginActivityTest
Change-Id: Ie3bebffbee32dbfc11c931096a39641a4815293e
-rw-r--r-- | services/autofill/java/com/android/server/autofill/Session.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/services/autofill/java/com/android/server/autofill/Session.java b/services/autofill/java/com/android/server/autofill/Session.java index 3114a6a02e31..431e1440ddd3 100644 --- a/services/autofill/java/com/android/server/autofill/Session.java +++ b/services/autofill/java/com/android/server/autofill/Session.java @@ -2979,8 +2979,8 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState inlineSuggestionsRequest.get(), response, focusedId, filterText, /*uiCallback*/this, /*onErrorCallback*/ () -> { synchronized (mLock) { - mInlineSessionController.hideInlineSuggestionsUiLocked( - focusedId); + mInlineSessionController.setInlineFillUiLocked( + InlineFillUi.emptyUi(focusedId)); } }, remoteRenderService); return mInlineSessionController.setInlineFillUiLocked(inlineFillUi); @@ -3284,6 +3284,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState /*onErrorCallback=*/ () -> { synchronized (mLock) { cancelAugmentedAutofillLocked(); + + // Also cancel augmented in IME + mInlineSessionController.setInlineFillUiLocked( + InlineFillUi.emptyUi(mCurrentViewId)); } }, mService.getRemoteInlineSuggestionRenderServiceLocked()); } |