Merge "Add call to send empty suggestions to IME on cancelling augmented autofill." into rvc-dev
This commit is contained in:
@@ -2979,8 +2979,8 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
|||||||
inlineSuggestionsRequest.get(), response, focusedId, filterText,
|
inlineSuggestionsRequest.get(), response, focusedId, filterText,
|
||||||
/*uiCallback*/this, /*onErrorCallback*/ () -> {
|
/*uiCallback*/this, /*onErrorCallback*/ () -> {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
mInlineSessionController.hideInlineSuggestionsUiLocked(
|
mInlineSessionController.setInlineFillUiLocked(
|
||||||
focusedId);
|
InlineFillUi.emptyUi(focusedId));
|
||||||
}
|
}
|
||||||
}, remoteRenderService);
|
}, remoteRenderService);
|
||||||
return mInlineSessionController.setInlineFillUiLocked(inlineFillUi);
|
return mInlineSessionController.setInlineFillUiLocked(inlineFillUi);
|
||||||
@@ -3284,6 +3284,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
|||||||
/*onErrorCallback=*/ () -> {
|
/*onErrorCallback=*/ () -> {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
cancelAugmentedAutofillLocked();
|
cancelAugmentedAutofillLocked();
|
||||||
|
|
||||||
|
// Also cancel augmented in IME
|
||||||
|
mInlineSessionController.setInlineFillUiLocked(
|
||||||
|
InlineFillUi.emptyUi(mCurrentViewId));
|
||||||
}
|
}
|
||||||
}, mService.getRemoteInlineSuggestionRenderServiceLocked());
|
}, mService.getRemoteInlineSuggestionRenderServiceLocked());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user