Merge "Clear inline suggestions before onStartInput instead of before onFinishInput" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4619e6e1d7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user