Merge "When starting new session, make autofill manager service to not clear inline suggestions" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
38e2eb695a
@@ -75,9 +75,7 @@ final class AutofillInlineSessionController {
|
|||||||
@NonNull Consumer<InlineSuggestionsRequest> requestConsumer, @NonNull Bundle uiExtras) {
|
@NonNull Consumer<InlineSuggestionsRequest> requestConsumer, @NonNull Bundle uiExtras) {
|
||||||
// TODO(b/151123764): rename the method to better reflect what it does.
|
// TODO(b/151123764): rename the method to better reflect what it does.
|
||||||
if (mSession != null) {
|
if (mSession != null) {
|
||||||
// Send an empty response to IME and destroy the existing session.
|
// Destroy the existing session.
|
||||||
mSession.onInlineSuggestionsResponseLocked(
|
|
||||||
InlineFillUi.emptyUi(mSession.getAutofillIdLocked()));
|
|
||||||
mSession.destroySessionLocked();
|
mSession.destroySessionLocked();
|
||||||
mInlineFillUi = null;
|
mInlineFillUi = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user