Merge "Make denylist only apply to unimportant views. Bug: 280462391 Test: atest AutofillForAllAppsTest.java" into udc-dev am: 284f8b62da am: 34f97e8433

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22977916

Change-Id: Ifc59d7ebf0162dc3ffc2ad1e06a22461340e9172
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Haoran Zhang
2023-05-04 16:56:12 +00:00
committed by Automerger Merge Worker

View File

@@ -1095,7 +1095,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;
}