Make denylist only apply to unimportant views.

Bug: 280462391
Test: atest AutofillForAllAppsTest.java

Change-Id: I66130374483b20f9eeab3519aae72e14e0a5eea7
This commit is contained in:
Haoran Zhang
2023-05-02 22:01:36 +00:00
parent 756f42311f
commit 65c0f56f8a

View File

@@ -1092,7 +1092,8 @@ public final class AutofillManager {
// or if other functions need to call it.
if (view.getAutofillType() == View.AUTOFILL_TYPE_NONE) return false;
if (isActivityDeniedForAutofill()) {
// denylist only applies to not important views
if (!view.isImportantForAutofill() && isActivityDeniedForAutofill()) {
Log.d(TAG, "view is not autofillable - activity denied for autofill");
return false;
}