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

Commit 4123afaf authored by TYM Tsai's avatar TYM Tsai
Browse files

Fixes sending multiple fill requests to the augmented service

Tapping on the same input field multiple times should only send one fill
request to the augmented service.

Bug: 145949573
Test: atest CtsAutoFillServiceTestCases
Change-Id: If07d64bd937b9e3a020135b58654dff9c2a21db1
parent c2517eee
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -2563,7 +2563,9 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
                    return;
                }

                if ((flags & FLAG_MANUAL_REQUEST) == 0 && mAugmentedAutofillableIds != null
                if (!isSameViewEntered
                        && (flags & FLAG_MANUAL_REQUEST) == 0
                        && mAugmentedAutofillableIds != null
                        && mAugmentedAutofillableIds.contains(id)) {
                    // View was already reported when server could not handle a response, but it
                    // triggered augmented autofill
@@ -2577,13 +2579,6 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState

                requestNewFillResponseOnViewEnteredIfNecessaryLocked(id, viewState, flags);

                // Remove the UI if the ViewState has changed.
                if (!Objects.equals(mCurrentViewId, viewState.id)) {
                    mUi.hideFillUi(this);
                    mCurrentViewId = viewState.id;
                    hideAugmentedAutofillLocked(viewState);
                }

                if (isSameViewEntered) {
                    return;
                }