Merge "Fixes expired response does not work with augmented autofill" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-28 07:37:55 +00:00
committed by Android (Google) Code Review

View File

@@ -2588,14 +2588,15 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
id)) { id)) {
// Regular autofill handled the view and returned null response, but it // Regular autofill handled the view and returned null response, but it
// triggered augmented autofill // triggered augmented autofill
if (!isSameViewEntered) { if (!isSameViewEntered || mExpiredResponse) {
if (sDebug) Slog.d(TAG, "trigger augmented autofill."); if (sDebug) Slog.d(TAG, "trigger augmented autofill.");
triggerAugmentedAutofillLocked(flags); triggerAugmentedAutofillLocked(flags);
} else { } else {
if (sDebug) Slog.d(TAG, "skip augmented autofill for same view."); if (sDebug) Slog.d(TAG, "skip augmented autofill for same view.");
} }
return; return;
} else if (mForAugmentedAutofillOnly && isSameViewEntered) { } else if (mForAugmentedAutofillOnly && isSameViewEntered
&& !mExpiredResponse) {
// Regular autofill is disabled. // Regular autofill is disabled.
if (sDebug) Slog.d(TAG, "skip augmented autofill for same view."); if (sDebug) Slog.d(TAG, "skip augmented autofill for same view.");
return; return;