Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9dbc568 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "When starting new session, make autofill manager service to not clear...

Merge "When starting new session, make autofill manager service to not clear inline suggestions" into rvc-dev am: 38e2eb69 am: da64eda6 am: 07b159fe am: 39985249

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

Change-Id: If96d0eb90576eecac4e2da2b7a419266a0b706e0
parents 66ddce96 39985249
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -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;
        }
        }