summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Daniel <danieljkim@google.com> 2023-08-07 18:11:34 +0000
committer Daniel <danieljkim@google.com> 2024-02-01 00:48:42 +0000
commit28e3d06d82c746f1e902f0e80087bc192718d3db (patch)
tree63af49079228612f3240986c7e52ba69a93e16d1 /libs/hwui/FrameInfoVisualizer.cpp
parent60a08194e5b89d3b2d7d02ec7c02937751f2d33d (diff)
[Autofill] Discard fill requests after save ui is displayed
There is a bug in Autofill where the saveUi gets closed as soon as it appears. This happens when the following conditions are met. 1. FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE flag is true. 2. A new view notifies of its visibility before the existing views notify of their disappearance. When a new view notifies of its visibility, it will request autofill from autofill service while in parallel, saveUi will pop up from the existing views disappearing. When processing the response from the autofill service, saveUi will be hidden, resulting in the flashing of the saveUi. By the time saveUi is shown, AutoFillManager resets its state. Since the autofill response that is processed was requested before AutofillManager reset its state, it should discard it, or it will result in state corruption. Test: atest CtsAutoFillServiceTestCases, atest android.autofillservice.cts.dropdown.LoginActivityTest#testSaveUiWhenAutoFocusedToANewEditText Bug: 283282918 Change-Id: I084c8a247a966959c0e69fb6639a0aee7067261f
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions