summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-06-26 14:21:21 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-06-26 14:21:21 +0000
commit4619e6e1d7728c0696938e2cd509c440ddbd27e5 (patch)
tree359ce3e562896993aad9974439327a4c11ad080b
parent3bc3fcfff0e57942e3269d522888c3a376786419 (diff)
parent62cc7dec3f5a586aec44f3037357cbaced4d6426 (diff)
Merge "Clear inline suggestions before onStartInput instead of before onFinishInput" into rvc-dev
-rw-r--r--core/java/android/inputmethodservice/InlineSuggestionSessionController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/inputmethodservice/InlineSuggestionSessionController.java b/core/java/android/inputmethodservice/InlineSuggestionSessionController.java
index 8c0dd2a9bf59..071c096ee2f0 100644
--- a/core/java/android/inputmethodservice/InlineSuggestionSessionController.java
+++ b/core/java/android/inputmethodservice/InlineSuggestionSessionController.java
@@ -134,6 +134,7 @@ class InlineSuggestionSessionController {
mImeClientFieldId = imeFieldId;
if (mSession != null) {
+ mSession.consumeInlineSuggestionsResponse(InlineSuggestionSession.EMPTY_RESPONSE);
// Initiates the callback to Autofill if there is a pending matching session.
// Otherwise updates the session with the Ime status.
if (!mSession.isCallbackInvoked() && match(mSession.getRequestInfo())) {
@@ -213,7 +214,6 @@ class InlineSuggestionSessionController {
mImeInputViewStarted = false;
mImeInputStarted = false;
if (mSession != null && mSession.shouldSendImeStatus()) {
- mSession.consumeInlineSuggestionsResponse(InlineSuggestionSession.EMPTY_RESPONSE);
try {
mSession.getRequestCallback().onInputMethodFinishInput();
} catch (RemoteException e) {