summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Alex Salo <asalo@google.com> 2023-08-30 15:29:55 -0700
committer Alex Salo <asalo@google.com> 2023-09-05 23:29:34 +0000
commit2bcd489a72168c72e156e68193d56a90db7ae16b (patch)
treebd4339291a4f48009131724de0b8984b12dc1995 /libs/androidfw/FileStream.cpp
parentb5197666967e3b47e1647d5946ac700e2b94da1b (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