diff options
| author | 2023-05-04 16:25:41 +0000 | |
|---|---|---|
| committer | 2023-05-04 16:25:41 +0000 | |
| commit | 284f8b62da454e855fe4029a8bf84e819a4d2d74 (patch) | |
| tree | f1851683ecdbecd80d0ae358fd9606537989d63d | |
| parent | 6f323685cce3e222c5aae0d7a204a02abe50a8ed (diff) | |
| parent | 65c0f56f8a358929de2e6777d34f037a85451097 (diff) | |
Merge "Make denylist only apply to unimportant views. Bug: 280462391 Test: atest AutofillForAllAppsTest.java" into udc-dev
| -rw-r--r-- | core/java/android/view/autofill/AutofillManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/autofill/AutofillManager.java b/core/java/android/view/autofill/AutofillManager.java index 40549de7ecb7..a6e9d4d2094f 100644 --- a/core/java/android/view/autofill/AutofillManager.java +++ b/core/java/android/view/autofill/AutofillManager.java @@ -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; } |