diff options
| author | 2023-08-30 15:29:55 -0700 | |
|---|---|---|
| committer | 2023-09-05 23:29:34 +0000 | |
| commit | 2bcd489a72168c72e156e68193d56a90db7ae16b (patch) | |
| tree | bd4339291a4f48009131724de0b8984b12dc1995 /libs/androidfw/FileStream.cpp | |
| parent | b5197666967e3b47e1647d5946ac700e2b94da1b (diff) | |
Make WebViews eligible for Autofill For All Apps (AFAA)
AFAA, when enabled, ignores isImportantForAutofill flag on a View subclass. However, it only does so when view.getAutofillType() is something other than NONE. Autofill type could be a TEXT or DATE etc, so that EditTexts are of type TEXT, for example. A WebView is not of any type since it's just a system for hosting other components. Therefore this fix skips the autofillType check for a WebView.
Note that we need to always treat a WebView as important for autofill, otherwise all its contents (e.g. children views like EditTexts within the WebView) would be skipped entirely during the detection stage. (Note that for this reason WebView's isImportantForAutofill property is already `true` by default.)
Change-Id: Iade54fac30a6ff21ab58bf838d4e4845ebe8b686
Fix: 286195872
Test: atest CtsAssistTestCases
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions