Merge "When starting new session, make autofill manager service to not clear inline suggestions" into rvc-dev am: 38e2eb695a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11710001

Change-Id: If3c6e8173199afd42bab9574b013b12e9d56b4d2
This commit is contained in:
TreeHugger Robot
2020-06-03 02:50:01 +00:00
committed by Automerger Merge Worker

View File

@@ -75,9 +75,7 @@ final class AutofillInlineSessionController {
@NonNull Consumer<InlineSuggestionsRequest> requestConsumer, @NonNull Bundle uiExtras) {
// TODO(b/151123764): rename the method to better reflect what it does.
if (mSession != null) {
// Send an empty response to IME and destroy the existing session.
mSession.onInlineSuggestionsResponseLocked(
InlineFillUi.emptyUi(mSession.getAutofillIdLocked()));
// Destroy the existing session.
mSession.destroySessionLocked();
mInlineFillUi = null;
}