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

Commit b8f1b592 authored by Adam He's avatar Adam He
Browse files

Reset session for augmented only on manual requests.

Bug: 132119724
Test: atest CtsAutoFillServiceTestCases
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest#testAutoFill_notImportantForAutofill_thenManualRequest
Change-Id: I5d3bf867b4dca71c74aa76c8227196c26c01e145
parent c71c7fe8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2178,6 +2178,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
    private void requestNewFillResponseOnViewEnteredIfNecessaryLocked(@NonNull AutofillId id,
            @NonNull ViewState viewState, int flags) {
        if ((flags & FLAG_MANUAL_REQUEST) != 0) {
            mForAugmentedAutofillOnly = false;
            if (sDebug) Slog.d(TAG, "Re-starting session on view " + id + " and flags " + flags);
            requestNewFillResponseLocked(viewState, ViewState.STATE_RESTARTED_SESSION, flags);
            return;