Fixes expired response does not work with augmented autofill
Augmented autofill does not request a new fill request after the old response is expired Bug: 157412832 Test: atest CteAutoFillServiceTestCases Change-Id: I88d400119fbc602869dc23d8b9f6575eb56de2c5
This commit is contained in:
@@ -2588,14 +2588,15 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
||||
id)) {
|
||||
// Regular autofill handled the view and returned null response, but it
|
||||
// triggered augmented autofill
|
||||
if (!isSameViewEntered) {
|
||||
if (!isSameViewEntered || mExpiredResponse) {
|
||||
if (sDebug) Slog.d(TAG, "trigger augmented autofill.");
|
||||
triggerAugmentedAutofillLocked(flags);
|
||||
} else {
|
||||
if (sDebug) Slog.d(TAG, "skip augmented autofill for same view.");
|
||||
}
|
||||
return;
|
||||
} else if (mForAugmentedAutofillOnly && isSameViewEntered) {
|
||||
} else if (mForAugmentedAutofillOnly && isSameViewEntered
|
||||
&& !mExpiredResponse) {
|
||||
// Regular autofill is disabled.
|
||||
if (sDebug) Slog.d(TAG, "skip augmented autofill for same view.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user