diff options
author | TYM Tsai <tymtsai@google.com> | 2020-05-26 21:21:07 +0800 |
---|---|---|
committer | TYM Tsai <tymtsai@google.com> | 2020-05-26 21:27:40 +0800 |
commit | eab095fb2326177ecd2fa734b80b89ed758e5ce5 (patch) | |
tree | 8823ffb91c8cb704f646fa251fb2b0ff1083ea23 /services/autofill | |
parent | 43c04e1457bbdd44aeb5526f6fe33eeceafc35e8 (diff) |
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
Diffstat (limited to 'services/autofill')
-rw-r--r-- | services/autofill/java/com/android/server/autofill/Session.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/autofill/java/com/android/server/autofill/Session.java b/services/autofill/java/com/android/server/autofill/Session.java index 06c60a3d08eb..37ed6f790c19 100644 --- a/services/autofill/java/com/android/server/autofill/Session.java +++ b/services/autofill/java/com/android/server/autofill/Session.java @@ -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; |